3 ms·
An expression-orientated Python would be so much better than the Python we have now. This article is not what the title suggests, but it’s a good explanation o
by fire_lake 2y ago
An expression-orientated Python would be so much better than the Python we have now.
This article is not what the title suggests, but it’s a good explanation of Lisp.
- Spivak 2y agoAn 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