Closed GoogleCodeExporter closed 9 years ago
This is in the IdeaGraveyard as something Guava is opposed to providing. Even
if the intent is to just adapt an Iterator for a single use in a for-each loop,
the method still returns an Iterable that breaks the expectation that it can be
used to produce multiple viable Iterators. That could lead to accidents if it's
used in any other way than just directly in a for-each. It also doesn't save
much in terms of code you have to write.
Original comment by cgdec...@gmail.com
on 30 Mar 2011 at 4:21
This is too bad. While I understand the philosophy behind rejecting this, it is
also a feature I often miss, and I think it doesn't violate the contract any
more than e.g. Iterables.consumingIterable() does.
Original comment by SeanPFl...@googlemail.com
on 4 Apr 2011 at 7:58
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:15
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:09
Original issue reported on code.google.com by
tv@duh.org
on 30 Mar 2011 at 1:53