BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Link 177634 thumbnail
User 368721 avatar

By jrcalzada
via raine-tech.com
Published: Apr 28 2009 / 13:07

As I’ve been playing around with Groovy something that immediately caught my attention was the way scoping worked within closures. I came across a code example involving using closures within double quoted strings in “Programming Groovy” by Venkat Subramaniam that made it seem, for a moment, that closures actually had dynamic scoping. After digging a bit more, I realized what really was going on was one of the most interesting characteristics of closures.
  • 7
  • 0
  • 1322
  • 1

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (0)