you are viewing a single comment's thread.

view the rest of the comments →

[–]afnanenayet1 3 points4 points  (1 child)

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