Closures
From APIDesign
Line 3: | Line 3: | ||
Since their invention [[closures]] become almost mandatory syntactic element for any new language. Not having them become a ''faux pas''. As the profound [[Blogs:JaroslavTulach:Theory:History_of_Programming_Languages|history of programming languages]] puts it: ''[[Java]] makes them popular by not having them''. | Since their invention [[closures]] become almost mandatory syntactic element for any new language. Not having them become a ''faux pas''. As the profound [[Blogs:JaroslavTulach:Theory:History_of_Programming_Languages|history of programming languages]] puts it: ''[[Java]] makes them popular by not having them''. | ||
- | Looks like things are about to change [[Sun]] recently announced its will to implement [[closures]] for [[JDK]]7. To join the overwhelming ecstasy in the [[Java]] community I decided to write this page and provide few insights from the other side. | + | Looks like things are about to change. [[Sun]] recently announced its will to implement [[closures]] for [[JDK]]7. To join the overwhelming ecstasy in the [[Java]] community I decided to write this page and provide few insights from the other side. |
To be continued... | To be continued... |
Revision as of 17:38, 28 November 2009
Closures are classical OOP approach to represent a block of code that can be invoked passing in few parameters. Closures are typical building block of Smalltalk systems. Origin of closures (called lamdas back then) can however be traced many years into the past to λ-calculus (where there is nothing else than invocable blocks of code).
Since their invention closures become almost mandatory syntactic element for any new language. Not having them become a faux pas. As the profound history of programming languages puts it: Java makes them popular by not having them.
Looks like things are about to change. Sun recently announced its will to implement closures for JDK7. To join the overwhelming ecstasy in the Java community I decided to write this page and provide few insights from the other side.
To be continued...