Closures 101 in Ruby
The Java community has resisted closures so far, even as competing languages such as C# add them. Closures are anonymous functions with closed scope. It's best to think of a closure as a code block that you can use as an argument, with special scoping rules. This article dives deep into Closures and uses Ruby to show how closures work.
(Submitted by Anonymous Thu Jan 18, 2007 )
Our content can be syndicated: Main page Mac Page
Copyright 1999-2005 Noel Davis. Noel also runs web sites about sailing and kayaking.
All trademarks are the property of their owners.
All articles are owned by their author