Java Lambda FAQ

I came across Maurice Naftalin’s Lambda FAQ recently – an accessible introduction to lambda expressions in Java for the layman who’d rather not read official proposals. Lambdas will make Java a more terse and a more powerful language. With any luck the SDK libraries will leverage them as will the libraries of Doug Lea and Google. Though it remains to be seen what happens to the readability and maintainability over time of code written with lambdas. But overall I’m very excited about this feature indeed. The only thing I’m less than enthusiastic about is the ‘->’ syntax which is reminiscent of PHP and C++ pointers and these are not pleasant memories. I can’t really think what a good alternative may be; perhaps something colon based – but I really hope they do come up with one.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s