The Artima Developer Community
Sponsored Link

Java Buzz Forum
Lexical scoping and Groovy closures

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Lexical scoping and Groovy closures Posted: Jan 16, 2005 8:35 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Lexical scoping and Groovy closures
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
Brian talks about closures and anonymous functions, and how closures are different in various ways, one being their lexical nature. Lexical nature is very natural to certain programmers. For example, it was drilled into my brain when Perl had both a local and my semantic which differed. Brian also goes on to compare the implementation differences with Ruby, and how a block is a special piece which get optionally get tagged on to a method call (and called via yeild), whereas in Groovy, a closure is just a Closure which can be passed into a method. I love the power of closures, and hope they continue to be a core part of the Groovy language.

Read: Lexical scoping and Groovy closures

Topic: Facades: Loose and Tight Coupling Previous Topic   Next Topic Topic: Data above the level of a single site

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use