News for hackers. Stuff that matters.
Re:TypeScript Is Surprisingly OK for Compilers by madeofpalk on Friday August 18, 2023 @11:39AM (#37177152)
Lack of pattern matching is annoying, but Typescript's tagged unions and type narrowing from if-statements are a good substitude and make for a very pleasent time traversing ASTs. C# has it's own way to express similar data structures (with subclasses and interfaces), but I find unions+narrowing much more natural in Typescript.

There are no comments on this comment yet.