Re:“I'm basically giving myself a permanent vacation from be...
by sebcat on Friday July 13, 2018 @08:22AM
(#17522270)
To clarify: the point I was trying to make was that the explicit 'end' in Lua allows for closures that are more nice (subjective) than Python lambdas. Something both JS and Lua got right, but with which Python ended up with a much more limited syntax.
[ Parent
| on HN ]
Re:“I'm basically giving myself a permanent vacation from be...
by klibertp on Friday July 13, 2018 @11:12AM
(#17523589)
The lambda syntax is not what makes it less nice - it's the fact that they are limited to a single expression. Being indentation-based has nothing to do with that restriction: Nim manages to use indents and to have multiline lambdas at the same time.