3 ms·
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
by wk_end 6y ago
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.