DEV Community

Discussion on: No, TypeScript is not a waste of time.

Collapse
 
ssimontis profile image
Scott Simontis

I hope we get more support for algebraic datatypes. The union and intersection types are so close to the discriminated unions of F#...if they can gross that gap Typescript is going to become a much more powerful tool. The benefit of static types becomes less about catching careless mistakes and more about designing types that don't allow for any illegal states in the first place.

Collapse
 
macsikora profile image
Pragmatic Maciej

I hope this can help - dev.to/macsikora/more-accurate-the...