language design question... any strong reasons why...
# announcements
p
language design question... any strong reasons why lambdas' curly braces are including the parameters unlike in java or typescript?
e
It works better with an
it
parameter and this way user-defined constructs looks more like built-in into the language. Great for DSLs.
p
yes, it is nice for single parameter lambdas, but what about 2 params or more? { x, y -> doStuff } looks strange imho
if parameters can be omitted, why can't they go outside the braxes in the cases they are not omitted?
braces*