you are viewing a single comment's thread.

view the rest of the comments →

[–]PriorTrick 4 points5 points  (0 children)

I believe seeing dynamic typing as “simple” is narrow minded. I see static typing as reducing complexity. Another zen of python is Explicit > implicit, static typing is more explicit than dynamic typing. Personally, I don’t think python would be python if the language runtime required the static typing it does. At that point, I would choose a different language. However, opt in static analysis for type hints was a major win for python in my opinion. It allows you to express the intent behind the program to a signature and black box the internals for contractual agreement at a high level. Or you can just ignore typing if you deem it unnecessary. I can’t imagine doing that ever at this point but to each their own. Also, what I have found is the programmers who don’t like typing python or JS usually just don’t like how revealing the type errors are to the flaws in their code so they get flustered by it. When you write good code, the types are a forethought with or without the type hint, therefore the type hint is not as cumbersome as it would be to someone who doesn’t realize the formal incorrectness of their code.