News for hackers. Stuff that matters.
Re:Why Become a TypeScript Fan? by wk_end on Wednesday March 10, 2021 @11:44AM (#26413163)
Not any time soon AFAIK. TS aims to be syntactically identical (minus the type system obviously) to JS, so no new constructs.

It’s not clear it’d be worthwhile, anyway - TS doesn’t support algebraic data types directly, which is the big use-case for pattern matching; and the type system is smart enough, with some careful massaging, to do exhaustiveness-checking when using ifs or switches and the standard pattern for simulating them.

There are no comments on this comment yet.