Hacker News new | ask | show | jobs
by wereHamster 3660 days ago
Would be nice, but I think we can do much better than what TS gives us right now, on the level of the type system. What's really missing are ADTs / sum types (and pattern matching, though that is more an implementation detail).
1 comments

I agree, ADTs would be nice. In fact, we have a pull request out for it right now. [1] :)

[1]: https://github.com/Microsoft/TypeScript/pull/9163