2 ms·
> But generally speaking the code is only 1/3rd of the size. So you have a lot less to read. Are you implying type hints triple the size of code? This is very
by kaashif 4y ago
> But generally speaking the code is only 1/3rd of the size. So you have a lot less to read.
Are you implying type hints triple the size of code? This is very far away from my experience, no idea what kind of monster types you're writing.
The only places you need hints are really function parameters and return types - your IDE can infer the rest.
- ReflectedImage 4y agoI've written countless programs with both static typing and dynamic typing, side by side. The statically typed programs are three times as long. It's not the type hints that are responsible. It's the supporting code for allowing the usage of static type checking. Abstract base classes, interface, generics, that stuff which just doesn't exist in the dynamically typed world.