Talk:Generator (computer programming): Difference between revisions

Content deleted Content added
No edit summary
Move comment by Nowhere man to end of talk page
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==
 
Line 211 ⟶ 202:
 
: I would say no. The content should be judged on it's own merits regardless of any activity involving the user who initially contributed it. I've reviewed the code and see nothing wrong with it, and in fact believe it to be an great example for demonstrating Python generators (in terms of ease of understanding, not necessarily efficiency). My only hesitation would be the policy of [[WP:BAN]], in that if these edits were made ''while'' the user was banned, then perhaps they ''could'' be reverted. But the policy doesn't say such edits ''have'' to be reverted, only that they may be. So I believe the content in this case is good enough to keep. [[User:Dmeranda|Dmeranda]] 16:56, 16 March 2007 (UTC)
 
==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)