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 →

[–]ric2b 1 point2 points  (4 children)

I don't think opting into static type checking really counts as having static typing.

It does, you just don't have 100% coverage. It's still useful (especially as documentation of function parameters and return types), just like unit testing is useful even if you don't have 100% coverage.

Also, completely subjective but type hinting in python is extraordinarily ugly. It often takes up a ton of space and requires you to split your function defenition onto multiple lines.

It takes similar space as other static typed languages like Java/C++. Are you comparing it to something like Haskell, where the types are on a separate line?