TypeScript's `erasableSyntaxOnly` Flag
Explains TypeScript's new `erasableSyntaxOnly` compiler flag, which restricts code to features that are fully erasable during compilation.
Explains TypeScript's new `erasableSyntaxOnly` compiler flag, which restricts code to features that are fully erasable during compilation.
A guide on using Rust enums to wrap and handle multiple error types, avoiding dynamic dispatch for more compile-time safety.
Argues against using TypeScript enums, advocating for union types due to code emission and type safety issues.