Hacker News new | ask | show | jobs
by baq 1269 days ago
Disagree on typing. Modern types, as evidenced by typescript, are very helpful and don’t incur significant verbosity cost. They are expensive in large projects during linting.

My personal recommendation is to use typing and mypy in all new code, coming from somebody who was celebrating new-style classes in 2.2.

1 comments

IMO Python typing really became good with the advent of Microsoft's type checker in VSCode, and probably PyCharm too, although I've never used it.

Typing with mypy during development never quite cut it because it's optional (unlike e.g. Typescript), and the editor support just didn't quite make it effortless the way VSCode/Pylance did. (I'm talking about development, not CI.)