Does the Iterator Pattern Stand the Test of Time?
It is really hard to think about any other pattern that has been more successful. In particular, patterns have long been about overcoming shortcoming of the language or platform.
In this case, iterators has became part of both language and platform in most modern systems.
- Python’s __iter__()
Basically, it is so good, it is everywhere.
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)