Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
James Gosling supports closures in Java
(
sun.com
)
7 points
by
iamelgringo
on Feb 1, 2008
|
hide
|
past
|
favorite
|
5 comments
jonnytran
on Feb 1, 2008
|
next
[–]
Great. According to Neal Gafter's blog
http://gafter.blogspot.com/2006/08/closures-for-java.html
there will be a java.lang.Null class to handle the type of null. Talk about putting the cart before the horse.
...But I guess that's what happens when you have to worry about backward-compatibility.
huherto
on Feb 1, 2008
|
prev
|
next
[–]
Closures would be nice in Java.
stcredzero
on Feb 1, 2008
|
prev
|
next
[–]
It's a big missing feature in Java and Python.
inklesspen
on Feb 1, 2008
|
parent
|
next
[–]
You can easily do closures in Python.
raganwald
on Feb 1, 2008
|
parent
|
prev
|
next
[–]
I thought Python had lambdas, albeit restricted to expressions, which in turn are restricted to single lines?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
...But I guess that's what happens when you have to worry about backward-compatibility.