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.

28 Comments

    • 2007-01-18 2:08 am
      • 2007-01-18 3:03 am
        • 2007-01-18 3:29 am
      • 2007-01-18 4:07 am
        • 2007-01-18 5:15 am
        • 2007-01-19 6:27 am
      • 2007-01-18 4:03 pm
    • 2007-01-18 3:22 pm
  1. 2007-01-18 1:25 am
    • 2007-01-18 6:53 am
  2. 2007-01-18 1:42 am
  3. 2007-01-18 4:14 am
  4. 2007-01-18 4:27 am
  5. 2007-01-18 5:25 am
  6. 2007-01-18 5:32 am
  7. 2007-01-18 10:33 am
  8. 2007-01-18 10:56 am
    • 2007-01-18 3:28 pm
  9. 2007-01-18 11:07 am
    • 2007-01-18 12:08 pm
      • 2007-01-18 3:37 pm
  10. 2007-01-18 12:18 pm
    • 2007-01-18 2:06 pm
  11. 2007-01-18 2:09 pm
  12. 2007-01-18 6:17 pm