3 ms·
Multi-line/multi-expression lambdas. "end" statement which would enable automatic indentation. "switch" statement instead of "if/elif/.../else" hell.
by Grue3 7y ago
Multi-line/multi-expression lambdas.
"end" statement which would enable automatic indentation.
"switch" statement instead of "if/elif/.../else" hell.
- ktpsns 7y agoOh yes, too all of them! Correctly done multi-line lambdas/expressions could bring Python's expressivitiy to where ECMAScript is nowadays, where you can write both foo = function(...) or function foo(). Perl 6 has a great switch statement, called "given" https://docs.perl6.org/language/control#given https://docs.perl6.org/language/control#given