▲ | felipeccastro 4 days ago | |||||||
Yes, but in practice, is the difference significant enough to matter? I’m genuinely looking to see if I’m missing anything when favoring Python type system over Go’s. | ||||||||
▲ | pansa2 4 days ago | parent | next [-] | |||||||
One difference is that Python's type system is unsound. You can write code that passes `mypy --strict` but still contains functions that, for example, claim to return an `int` but actually return a `list` [0]. AFAIK it's not possible to circumvent Go's type system in such a way. | ||||||||
| ||||||||
▲ | pdimitar 3 days ago | parent | prev [-] | |||||||
It matters the most in practice, actually. Much less production all-hands-on-deck situations. The fact that there still exist people to whom this is not painfully obvious is despairing me. |