3 ms·
Could you elaborate?
by notpushkin 1y ago
Could you elaborate?
- Larrikin 1y agoA simple example is that people who start with Python think the list comprehension with all the colons and negative numbers is actually good instead of a hindrance. Python relies on pandas, Polars, and Pyfunctional to prop up a bad language design choice.
- notpushkin 1y agoList comprehensions look like this: [f(x) for x in xs] I think you mean the slice syntax (`xs[5:7]`). I don’t see how this is a bad design choice, though.
- rienbdj 1y agoTake a look at F# for a superior list comprehension design.
- rienbdj 1y agoIn Java you can write multiline anonymous functions and in Python you can’t (well, not in a reasonable way). Java has immutable bindings with the final keyword. Java variables are lexically scoped, which discourages mutation of globals.