Re:Toolz: A functional standard library for Python
by cabalamat on Thursday January 21, 2021 @03:02PM
(#25863481)
Given that Python allows unicode characters in source, I'm surprised it doesn't allow lambda to be replaced by the λ character.
[ Parent
| on HN ]
Re:Toolz: A functional standard library for Python
by JNRowe on Thursday January 21, 2021 @03:25PM
(#25863757)
For those, like me, who get excited by this note that there are restrictions on the Unicode categories that are allowed, see the supported characters¹ and gory details². It is often enough to write math-y code in a usable way, but occasionally you'll find you can't use the character you want.
¹ https://docs.python.org/3/reference/lexical_analysis.html#id...
Re:Toolz: A functional standard library for Python
by dragonwriter on Thursday January 21, 2021 @06:24PM
(#25866070)
That would be quite unpythonic. Down that road lies Raku.
EDIT: To be clear, I like Raku. But Python has its own distinct aesthetic.