2 ms·
> the job of a programming language is to make it easier for me to tell the CPU what to do. Not having types is detrimental to that. JavaScript and Python have
by mkl 2y ago
> the job of a programming language is to make it easier for me to tell the CPU what to do. Not having types is detrimental to that.
JavaScript and Python have types, and Python has always been strongly typed (type hints have not changed that). Neither TypeScript or Python use type hints at runtime to help tell the CPU what to do.
What type hints in these languages do is make it easier for you to describe more specifics of what your code does to your tooling, your future self, and other programmers.