by ohmahjong · 1y ago · 0 comments
But when the types are sound you can use them to compile better code. That's what most languages with "proper" static types (not just type hints) do.
I know you didn't ask me but I think that not ensuring soudness is a feature because it allows the type system to wrap something that could work without it. Would you like unit tests if removing them would break your code? Maybe it's not a fair comparison, or maybe it is...