3 ms·
>I don't have an opinion on which language is superior here, I've never written typescript or even javascript before, but I think saying that python's type syst
by corethree 3y ago
>I don't have an opinion on which language is superior here, I've never written typescript or even javascript before, but I think saying that python's type system/checkers is superior because of this one feature is not correct.
I meant, it supports basically every common/useful type feature in addition to this one which is very powerful.
>I'm also skeptical of the claim that typescript doesn't support exhaustive branching. This very well could be true but it seems hard to believe.
It is true. Look it up. Very few languages support this feature. Python is able to do it because the type checker is external so developers can create all kinds of features and move faster then core python development. But by default other then Rust, Rust is basically the only popular language that officially has this concept.