Github user zentol commented on the pull request:
https://github.com/apache/incubator-flink/pull/84#issuecomment-50600322
i feel like we are going in circles^^
take the ```IterableIterator``` class, rename it to ```Iterator```, add
into docu/javadocs "Iterator on which the for-each statement can be used. the
for-each loop starts at the element that next() would return".
traversable-once characteristic is obvious, supports for-each statement,
solves these odd exception issues andd the differences to a normal iterator can
be summed up in 2 lines. bonus: less API breaking, since its just an import
that has to be changed.
we cant use a name that makes all properties obvious (because
```IterableIterator``` is an odd name). the for-each statement not being
obviously usable is imo a lot more desirable than then user creating faulty
programs hitting exceptions based on false premises how the ```Iterable```works.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---