by digdugdirk · 3y ago · 0 comments
Articles like this expose people like me to concepts of typing that I never would get otherwise, and by practicing the concepts in python I might eventually be able to make the leap.
It's also worth asking if the people who read your code are going to disengage when they see a big pile of type hints. It can be "better" in some abstract sense and still worse for the task at hand.
This is about people trying to use the wrong typing system "static typing" in a language that already has a better typing system "dynamic typing".
This is about bad programmers who have come from Java and want all other programming languages to look like Java.
Languages make different choices to suit different domains, and with perfectly good reasons.
Don't complain, embrace the richness and diversity of programming languages. And choose the right one for each task.