There are other cases of unsoundness in typescript, e.g. function arguments being treated as bivariant instead of contravariant and it would probably have been better to pick such an example.
But yes, I’m worried about the performance too. It’s good that’s it’s in rust at least, but type inference for dependent types is afaik not decidable in general.
2
u/Hjulle Sep 24 '22
There are other cases of unsoundness in typescript, e.g. function arguments being treated as bivariant instead of contravariant and it would probably have been better to pick such an example.
But yes, I’m worried about the performance too. It’s good that’s it’s in rust at least, but type inference for dependent types is afaik not decidable in general.