c++ iterators are so much more complex than generators. they introduce a hierarchy of categories that provides more control. they (at least basic c++ iterators) also conflate traversal and element access — something i understand that boost attempts to untangle.
either way i always find it interesting to learn about concepts that, while new to some languages, have existed for a while in others. there is still nothing new under the sun, but there are certainly opportunities to learn from prior experience.blog comments powered by Disqus