3 ms·
This is actually WHY i think typescript is going downhill. I feel the sweetspot was around 2.x (iirc) when things like this was not possible. Everytime i hear
by phplovesong 1y ago
This is actually WHY i think typescript is going downhill. I feel the sweetspot was around 2.x (iirc) when things like this was not possible.
Everytime i hear Ocaml has a complex type system i refer them to Typescript.
- tills13 1y agoNobody is forcing you to write TypeScript like this...
- phplovesong 1y agoBut it is possible, and i have seen code like this (admittedly, not as complex) in production. When you have code like this is really hard to know what is really going on. Its SUPER rare you need flexibility like this in your type system, and as we all know when its doable, people will abuse it like crazy.
- tills13 1y agoYou DO need this flexibility in your type system when the underlying language is dynamic.