A syntax option (function types versus arrays)
Stefan Schulz
schulz at the-loom.de
Tue Mar 2 00:31:15 PST 2010
Neal wrote:
> (String -> int throws SomeException) variable = (String x -> 3);
Regarding function types, this is just what I proposed some mails ago ;)
Regarding lambdas, I disagree. There is no need to make both look alike,
in fact, I prefer lambdas to resemble (anonymous) methods.
Rémi's suggestion
> (String throws SomeException -> int) variable = (String x -> 3);
unfortunately places the arrow in between the definitions of the
possible outcome of an invocation.
Cheers,
Stefan
More information about the lambda-dev
mailing list