DEV Community


Discussion on: The Dream of C# 9.0

haaxor1689 profile image
Maroš Beťko

Typescript doesn't come close. It goes way above and beyon with it's intersection, union, mapped and conditional types. I worked on a project where I was in charge of frontend (ts) and my coworker was doing backend (.net) and we wanted to move some logic from client to server. And it just wasn't possible to write without using dynamic which throws all compile time checks out of the window.

Thread Thread
nthcommit profile image
Michael Fry

While I agree that the TS type system is awesome, discriminated unions in TS are a bit clunky, compared to Haskell/F#. Would be good to see them become a first class concept in TS, and not a side-effect of the super flow analysis.