Brendan Eich wrote:
Herby Vojčík wrote:
It's easy to get on thin ice without the arrow, due to destructuring
parameters vs. array literal expression bodies, unary +/-, leading [ vs.
[] as indexing operator, and of course /. Consider
:x = default_x [x,x*x]
That [ indexes into the default_x that was intended as the parameter
default value for x. Oops.
Saying "parenthesize!" does not help if the author then parenthesizes
the body:
:x = default_x ([x,x*x])
Yes, these are good examples... thanks.
Then I would +1 the Russel's paren-free syntax... less parens, more
whitespace (is what I like).
/be
Herby
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss