By dan
via barneyb.com
Published: Jun 29 2008 / 13:25
Wanting some light reading for this evening, I decided to dig into the Closures for Java draft spec (homepage).
Oh. My. God.
I'm a huge fan of closures. They're elegant, simple, and easy to use. Their semantics are subtle, but not confusing. They allow for very concise implementation of otherwise complicated algorithms, trimming a vast number of "normal" control structures, particularly various looping constructs.
Comments
Ricky Clarkson replied ago:
Quite inaccurate. I explained why in the comments (assuming mine is approved).
daniel replied ago:
Yeah, I'm not sure what he was driving at. I'll agree that functional features like closures tend to require some sort of type inference to prevent the syntax from getting completely out of hand. However, to say that closures require a dynamic type system is ludicrous. Scala is a nice counter-example.
Voters For This Link (14)
Voters Against This Link (6)