News for hackers. Stuff that matters.
Re:Java finally getting closures, method handles and traits ... by nicpottier on Monday January 24, 2011 @01:57AM (#2134532)
Agreed.

I've been programming Java since the Alpha days and it is getting to the point where all the extended syntax is a bit outrageous.

The real problem is that most of these extensions are required to make Java more powerful, certainly generics / templating was a huge boon. But examples like the above make my eyes hurt.

I suppose my question is whether you can add all the features that make functional languages powerful while also retaining static typing. That's what Java is trying to do. In same cases the type safety is a huge boon to building a large system with many people working on it, in others something more dynamic allows you to be far more productive. I'm not sure you can have both and still have code anybody wants to write.

I haven't played much with Clojure yet, not sure if that is the best of both worlds.

Re:Java finally getting closures, method handles and traits ... by DennisP on Monday January 24, 2011 @09:33AM (#2135225)
> I suppose my question is whether you can add all the features that make functional languages powerful while also retaining static typing.

Of course you can. Look at Scala. (And on other platforms, F#, ML, and Haskell.)