4 ms·
> This is a large part of the reason why Python limits lambdas to a single line... Python doesn't limit lambdas to a single line, but to a single expression. T
by masklinn 14y ago
> This is a large part of the reason why Python limits lambdas to a single line...
Python doesn't limit lambdas to a single line, but to a single expression. That is a rather different constraint.
- jashkenas 14y agoSorry for the imprecision. It's the same thing to Python, in terms of significant whitespace. Language features that use whitespace for structure are not considered to be expressions, and can't be used as part of a larger computation. In CoffeeScript, they are, and can.