Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Could you elaborate?


A 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.


List 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.


Take a look at F# for a superior list comprehension design.


In 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: