The currently used syntax in Lambda is just a proposal. I have hope they switch to '#'.
Brian (Goetz) said that the current proposal is just an idea, and he indicated that they put out such decisions from revision to revision to get the communities feedback. So if enough people claim it's an odd choice (not because of Xtend but because in JavaDoc it's a '#') it might be helpful feedback :-)
We can't change this in Xtend since it would break existing code.
We have plan's for the same feature but using a '#'.
So ideally we all tell Brian & Co that '#' is a great syntax ;-)
Here's the list :
http://mail.openjdk.java.net/mailman/listinfo/lambda-dev
>
> Is it invisenged that Class::methodName is the MethodHandle (static or instance), and Class::methodName(args) is a static invocation? Seems a bit confusing.
Yes, indeed. Also it's ambiguous.
Sven
On 09 Nov 2014, at 14:25, ngan.v...@gmail.com wrote:
When will this method reference feature be supported? I don't mind whether "::" or "#" is used.Vincent
--
You received this message because you are subscribed to the Google Groups "Xtend Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtend-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
stream().mapToDouble(TestCls::getDblValue().sum()
stream.mapToDouble(it | dblValue).sum
--
You received this message because you are subscribed to a topic in the Google Groups "Xtend Programming Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xtend-lang/uya3Zmvrteo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xtend-lang+...@googlegroups.com.