Re:Toolz: A functional standard library for Python
by heavyset_go on Friday January 22, 2021 @06:49PM
(#25877868)
Assignment expressions were "unpythonic" based on PEP 20 until they weren't. Modern languages have multi-line anonymous functions, and developer expectations have changed in the 17 years since PEP 20 was published.
[ Parent
| on HN ]
Re:Toolz: A functional standard library for Python
by high_density on Sunday January 24, 2021 @01:21AM
(#25889803)
the thing with python is that it's "indentation-based" -- it's difficult to see "where does this anonymous function return or end?"
maybe it's time to allow optional brackets for marking where a function starts and ends? eg. a { ... } (or anything else -- even {| ... |} will do)