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.



Add your comment