2 ms·
An expression oriented Python would simply not be Python. That's fine but "expressions as second-class syntax" is pretty fundamental and a deliberate choice to
by Spivak 2y ago
An expression oriented Python would simply not be Python. That's fine but "expressions as second-class syntax" is pretty fundamental and a deliberate choice to make developers who try to write paren soup have a bad time. Hence why lambda: and := are deliberately clunky to discourage their use and you can't write anonymous functions.
Python says if you want to be clever be clever with iterators not callables.
- fire_lake 2y agoInteresting that Python is openly hostile to (what I consider to be) a more natural and composable way to program. Iterables aren’t even very well done in Python - the list comprehension syntax is much less powerful than in other languages