Question about latest binary build
John Nilsson
john at milsson.nu
Wed Jul 18 10:32:59 PDT 2012
I would guess that the curly brace syntax is required to know what
statements belong to the lambda. To be consistent with method definitions
you also need to use the return keyword for the final result.
To allow for a simpler syntax in cases of pure expressions there is also an
expression form of lambdas where no statements are involved and thus no
curly braces or return keyword.
Or in other words: void is not a value, so void methods can't be used in
expressions.
BR
John
Den 18 jul 2012 18:55 skrev "Marcus Thiesen" <marcus at thiesen.org>:
More information about the lambda-dev
mailing list