3 ms·
What do you mean by "the next feature you would logically want"?
by faceyspacey 10y ago
What do you mean by "the next feature you would logically want"?
- beaconstudios 10y agowell in my experience, and this has happened a few times with different requirements which is why I was generic, what happens is you try to use more and more of TypeScript's features to get strict typing (keyof, mapped types, discriminated unions etc) and they work great for 80% of cases. Then you push the feature too far and it falls down. For example, I managed to get tsc to hit a "stack depth exceeded" error by adding a minor variation on an existing complex type that I'd created. I find with TS types, less is very often more unfortunately. I'm trying to use TS like Haskell and it just doesn't play ball.
- spion 10y agoYes, TS does have limits. Its still very expressive compared to most mainstream type systems.