News for hackers. Stuff that matters.
Re:Rewriting TypeScript in Rust? You'D have to be by 411111111111111 on Thursday December 15, 2022 @10:23AM (#34000891)
Agreed and I think the reason for this confusion is because string types generally aren't considered a complicated feature of typescript.

Nor is it unique to it. I.e. elexir does the same through pattern matching and it works even better as far as I'm concerned.

It's more about the features that enable extended type inference and modifying these inferred types on-the-fly.

Easy to understand type modifiers like Omit<>, Partial<> etc are fine, but if you lean into that you can create pretty hard to understand typing logic. Especially if you're diving into annotations for code generation

There are no comments on this comment yet.