News for hackers. Stuff that matters.
Re:Python’s “type hints” are a bit of a disappointment to me by bspammer on Saturday April 23, 2022 @05:42AM (#31132706)
I think the difference is largely a culture problem. Most python devs think of typing as a “nice to have” extra, whereas someone using a typed-at-compile-time language see it as an essential feature of good code. You can see the results of this in the fact that a lot of popular 3rd party python libraries still don’t have type hints.

Even with typing, how often do you see Any in python vs Object in Java?

Re:Python’s “type hints” are a bit of a disappointment to me by nine_zeros on Saturday April 23, 2022 @09:10AM (#31133941)
> I think the difference is largely a culture problem. Most python devs think of typing as a “nice to have” extra, whereas someone using a typed-at-compile-time language see it as an essential feature of good code

I love statically typed languages. I also love python. But pythons "type annotation" system is garbage. It is neither here, nor there and developers spend an inordinate amount of time figuring out types.

While other languages typing is a productivity booster, pythons type annotation absolutely isn't, especially with complex types.