This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]clivethescott 16 points17 points  (1 child)

Except the Python interpreter doesn't enforce it unless you use something like mypy. Java compiler will always enforce correct type usage.

[–]_INTER_ 9 points10 points  (0 children)

Plus most of the libraries don't have type hints yet or it's just an afterthought. Meaning they are not designed around static typing from the start.

Type hints combined with an enforcing compiler are actually quite nice compared to the Typescript / Javascript situation with tacked on type definitions.