Link Details

Link 90915 thumbnail
User 5 avatar

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.
  • 14
  • 6
  • 1855
  • 508

Comments

Add your comment
User 179375 avatar

Ricky Clarkson replied ago:

1 votes Vote down Vote up Reply

Quite inaccurate. I explained why in the comments (assuming mine is approved).

User 107114 avatar

daniel replied ago:

0 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.