Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes. The reason type checking is separate from the interpreter is that python is an ecosystem, not a language. Even if you like static typing, 99% of projects benefit from other code that lacks typing. Type hinting puts you in control of where types are enforced while allowing you to use duck-typed code. The cost is that you have an extra step in your build chain - but CI, IDEs and other automation all but negate that cost.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: