Talk:Closure (computer programming): Difference between revisions

Content deleted Content added
closures in prolog??
Line 81:
 
:Admittedly Python closures are broken in this respect compared to Scheme, but this is overstated. As a matter of practice, 99% of the time Python closures work just like Scheme closures. They look the same, work the same, and are used for the same purposes. On the other hand, if you're using a closure in Python to hide modifiable state, it's probably a kindness that Python doesn't support what you want to do. [[User:Jorend|Jorend]] 20:41, 10 January 2006 (UTC)
 
::I have changed my view on this. Python closures are ''not'' used for the same purposes as Scheme closures. I am told that in Scheme, closures are very commonly used to hide state. In Python, you would just use a class instead. [[User:Jorend|Jorend]] 21:50, 15 February 2006 (UTC)
 
== Removed "merge this with Function object" note ==