Bullocks. I wrote thousands if not hundred thousandths lines of untyped Python code in over 15 years, for critical systems and thousands of users. It works for me. I'm not confused about the code, I can code and debug quicker than many of my typed-language colleagues and even now that python supports type hints I often only use them in bigger projects or in places where they're actually convenient. It's simply the wa…
Type Inference Was a Mistake
31–40 of 133 posts
Re: Type Inference Was a Mistake
#32At the definition site, I agree with the author that type inference is more of a burden for the most part, at least if the function is more than a hidden implementation detail of the class/module/file.
Re: Type Inference Was a Mistake
#33Re: Type Inference Was a Mistake
#34Explicit typing is great until your code is littered with shared_ptr >>> everywhere.
Re: Type Inference Was a Mistake
#35> In Rust and Haskell you have to at least annotate the parameter types and return type of functions. In Rust you do, but in Haskell you don't.
In Haskell the culture is to always do it, more or less for this reason.
Re: Type Inference Was a Mistake
#36This is not good. One of the author's arguments is that type inference in an IDE is bad because sometimes I read code in a book where I don't have type inference... I don't know about other folks, but the vast majority of code I read is in my editor, where the type inference saves me a ton of time and pain.
I also find myself reading code in a browser, for example in GitHub or any other system for source control, issue management, code review etc.
Re: Type Inference Was a Mistake
#37Re: Type Inference Was a Mistake
#38Bullocks. I wrote thousands if not hundred thousandths lines of untyped Python code in over 15 years, for critical systems and thousands of users. It works for me. I'm not confused about the code, I can code and debug quicker than many of my typed-language colleagues and even now that python supports type hints I often only use them in bigger projects or in places where they're actually convenient. It's simply the wa…
Also you're confusing dynamic typing and type inference.
Re: Type Inference Was a Mistake
#39Bullocks. I wrote thousands if not hundred thousandths lines of untyped Python code in over 15 years, for critical systems and thousands of users. It works for me. I'm not confused about the code, I can code and debug quicker than many of my typed-language colleagues and even now that python supports type hints I often only use them in bigger projects or in places where they're actually convenient. It's simply the wa…
The fact that people can get used to something and be productive with it doesn't mean that its not objectively worse than the alternative.
Re: Type Inference Was a Mistake
#40Bullocks. I wrote thousands if not hundred thousandths lines of untyped Python code in over 15 years, for critical systems and thousands of users. It works for me. I'm not confused about the code, I can code and debug quicker than many of my typed-language colleagues and even now that python supports type hints I often only use them in bigger projects or in places where they're actually convenient. It's simply the wa…
The fact that people can get used to something and be productive with it doesn't mean that its not objectively worse than the alternative.