3 ms·
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 (a
by wereHamster 10y 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).
- DanRosenwasser 10y agoI 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 https://github.com/Microsoft/TypeScript/pull/9163