Jump to content
Sign in to follow this  
Nethious

Java lambdas to adopt syntax of C#.

Recommended Posts

oracle is planning to change the syntax of java lambdas, to the syntax of C#.

source: [url]http://mail.openjdk.java.net/pipermail/lambda-dev/2011-September/003936.html[/url]


thoughts?

Share this post


Link to post
Share on other sites
Doesn't matter much to me, syntax is just syntax. C# borrowed quite a bit from Java during its creation, so I don't see any problems with Java using syntax for lambda functions from a language that already successfully implements them, especially from such a similar language.

Share this post


Link to post
Share on other sites
This has been declined to be implemented in java 7. MAYBE it will appear in java 8 :(

And, in my opinion, java should adopt ruby's blocks and procs: [url]http://eli.thegreenplace.net/2006/04/18/understanding-ruby-blocks-procs-and-methods/[/url]

Share this post


Link to post
Share on other sites
i still prefer
[code]\x -> x + 1[/code]
to
[code]x => x + 1[/code]

[quote name='bl00dshooter']This has been declined to be implemented in java 7. MAYBE it will appear in java 8 :(

And, in my opinion, java should adopt ruby's blocks and procs: [url]http://eli.thegreenplace.net/2006/04/18/understanding-ruby-blocks-procs-and-methods/[/url][/QUOTE]

ugly

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×