Talk:Generator (computer programming): Difference between revisions

Content deleted Content added
m Reverted edits by Zeepwner (talk) to last version by Dmeranda
No edit summary
Line 1:
==Fuzzy definition?==
 
Coming from the STL, I find this definition quite fuzzy. Mixing generators and iterators seems strange, as I saw them serve different purposes:
 
* generators are functions with no argument and returning an object, and are not referentially transparents
* iterators are objects whose designate an element within a collection, and whose methods allow to access that element or designate another one, according to the access mode of the collection
 
[[User:Nowhere man|Nowhere man]] 09:53, 24 April 2007 (UTC)
 
==Origin of the concept==