The Artima Developer Community
Sponsored Link

Java Buzz Forum
Java 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
Java Closures Posted: Aug 19, 2006 8:21 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Java 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

It looks like Java is getting closures. After years of the .NET folklaughing at us as they compare delegates to futzing with anonymous inner classes, and the guys with true closures (ruby, lisp, ...) laughing at the poor static folk who don't have them, the Java platform finally can.

The fact that this is so late in the game, and the need for backwards compatibility rises too:

Unfortunately, compatibility prevents us from changing existing APIs. One possibility is to introduce a boxing utility method somewhere in the libraries...

Having "^ expression;" to mean 'return out of a closure' to stop some of the madness of "does return get out of X or Y?" is interesting.

I hope that Dolphin ends up with something great here, and not the mess we have with generics and type erasure.

Read: Java Closures

Topic: DiffJ 1.1.0 Previous Topic   Next Topic Topic: The Big Faceless Organization has released the Big Faceless Graph Library 2.2.4, an $800 payware...

Sponsored Links



Google
  Web Artima.com   

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