2 ms·
Summation: There have been modest improvements, but most of the fundamental objections JWZ had are still in force, in particular the ones about the nature of th
by jerf 18y ago
Summation: There have been modest improvements, but most of the fundamental objections JWZ had are still in force, in particular the ones about the nature of the language itself. After learning Python, Perl, Haskell, and sundry others I've come to consider the "It's hard to live with none of: lexically scoped local functions; a macro system; and inlined functions." criticism the most devastating, and the only progress on that front is that Java may or may not get closures in the future, and if it does they will probably have many issues.
I also think the top answer misses the point of JWZ's criticism about inlining; his complaint is not that JVMs don't inline, but that he can't control it. A commenter further down on the page points out that in C++ it's only a hint and I suspect JWZ wouldn't appreciate that either. Standard caveat: I'm trying to guess what somebody else "really means" and that's always tricky, my apologies if I get it wrong.
- sethg 18y agoI am astounded that in response to proposals to add closures to Java, many Java programmers protested that Java didn't need no stinkin' closures.
- jimbokun 18y agoI agree that Java suffers greatly from the absence of closures. However, I also fear that Java is designed in such a way, and has so much existing code, that it may be near impossible to add closures in a way that isn't confusing and doesn't break in unexpected ways. Joshua Bloch thoroughly covers the relevant issues in these PowerPoint slides. http://www.javac.info/bloch-closures-controversy.ppt http://www.javac.info/bloch-closures-controversy.ppt (I'm pretty sure the video is online too, if you Google a little more than I did.)