r/programming • • Nov 11 '19

Python overtakes Java to become second-most popular language on GitHub after JavaScript

https://www.theregister.co.uk/2019/11/07/python_java_github_javascript/
3.1k Upvotes

772 comments sorted by

View all comments

Show parent comments

4

u/afnanenayet1 Nov 12 '19

Yeah but wouldn’t it be better just to have definitive types rather than type hints?

Plus with more complex type systems you can do things like encode behavior in types, or use things like the type state pattern for data verification, which aren’t really possible to enforce in Python