Does the Iterator Pattern Stand the Test of Time?
Join the DZone community and get the full member experience.Join For Free
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.
Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.