And each is not an Enumerable, but a dependency of Enumerable. So depending on how each is implemented, there is no guarantee that leaks do not happen. The method, probably stated obviously, does not even need to be an "iterator" but could be whatever. (don't do that though! :) )
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I didn't know that for loop leaks the variable while each does not!
And
each
is not anEnumerable
, but a dependency ofEnumerable
. So depending on howeach
is implemented, there is no guarantee that leaks do not happen. The method, probably stated obviously, does not even need to be an "iterator" but could be whatever. (don't do that though! :) )