Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Sorry 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: