4 ms·
> TypeScript 2.0 goes beyond that and begins to push the envelope on what type systems can do. Recently I've been loving the combination of discriminated union
by clarus 10y ago
> TypeScript 2.0 goes beyond that and begins to push the envelope on what type systems can do. Recently I've been loving the combination of discriminated union types and nullable types.
As a side node, the FlowType system for JavaScript has had these features for over a year now, while TypeScript 2 is still in beta. These are the exact features which made us decide to go for FlowType instead of TypeScript 6 months ago. Happy to see that these two type systems now converge.
- s369610 10y agostill waiting on flow to be cross platform (windows)
- Noseshine 10y agoJust to add to this, here's the tracking issue, upvote to support it: https://github.com/facebook/flow/issues/6 https://github.com/facebook/flow/issues/6 29 days ago somebody posted an unofficial Windows binary: https://github.com/facebook/flow/issues/6#issuecomment-229897350 https://github.com/facebook/flow/issues/6#issuecomment-22989...