(video)
Getting Closure
This entry was written by spud, posted on September 23, 2006 at 11:49 pm, filed under General, Java. Bookmark the permalink. Follow any comments here with the RSS feed for this post.
Trackbacks are closed, but you can post a comment.

8 Comments
Been playing with Ruby recently and liked the closures. Hope they add it to Java. Enjoyed your first Video blog, took me back to the 90’s.
Why wait? Groovy has them now and compiles to byte code. You can write your closure logic in Groovy and call the Groovy classes from Java just like they were Java classes.
Groovy Shmoovy, I want my increasing-complicated java. No, scratch that, I’m sick of updating the java grammar for Clover.
The Blogger returns! Hurrah!
The type inferencing aspects of the proposal are interesting. I suspect Java would be a better language with wide application of type inferencing.
As for Groovy, I say, “Bah! Come back and talk to me if it ever reaches 1.0.”
Brilliant!
You know, we can’t add methods to interfaces because it breaks backwards compatibility. But we can add new static methods to the JDK. I will be proposing adding a method to iterate over the entries in a map.
Glad you liked it Neal. Yeah, it did occur to me that the Map interface will never grow a forEachEntry() method, but I suppose it just seemed easier to have the example work that way
And maybe I’ve been doing too much ruby lately…
Great Harry Butler impersonation
and nice to see web 2.0ish touch to your blog
Why use Java? Why not just use a language with closures and/or type inferencing? If you can whiz your way through the mess that is Java, then Haskell should be a breeze.