4 ms·
> If functions have type specifications, you should not be able to call them with the wrong type, ever. This assumes you can represent a type specification for
by sitkack 11y ago
> If functions have type specifications, you should not be able to call them with the wrong type, ever.
This assumes you can represent a type specification for the function you are calling, this isn't always possible in a dynamic language with advanced metaprogramming facilities.
Think of it as modularizing the compiler and runtime so that the dials on dynamism can be tuned by the team.
PyCharm already used pretty sophisticated type inference this just helps it. But the real win is being able to run mypy or pytype over a codebase automatically.
Types, Contracts, Properties, Tests are different directions in a tensor field. With Python you can mix and match at your will. This is in _no way_ relatable to the 2-3 mess.