3 ms·
After many years of writing and maintaining Python code, I respectfully disagree with your statement. The marginal reading overhead that type annotations bring
by Jiejeing 5y ago
After many years of writing and maintaining Python code, I respectfully disagree with your statement. The marginal reading overhead that type annotations bring (which can be alleviated by specific color schemes) dwarfs the ability to have a reasonable expectation of the code base trustworthiness.
- ReflectedImage 5y agoA Python code bases trustworthiness depends on it's unit tests. If you are using type hints for that, you have seriously gone wrong.
- mountainriver 5y agoAlso just the ability to understand a code base, exploring libraries in dynamic python is super painful
- dfinninger 5y agoPyCharm is really good when exploring Python. But this made browsing Python code on Github much more difficult. I've pulled down some project more than once just to get PyCharm's type inference and documentation. With type annotations it makes just reading the file without an IDE much nicer.