TypeScript 5.8 Bids Farewell to Enums: A Dignified Exit

2025-03-02
TypeScript 5.8 Bids Farewell to Enums: A Dignified Exit

TypeScript 5.8 introduces the `--erasableSyntaxOnly` flag, effectively ending the era of enums and namespaces. While literal unions offer superior ergonomics, the author expresses nostalgia for enums. The article highlights a key advantage of enums: superior documentation support for members, including deprecation notices, crucial in large codebases, a feature lacking in literal unions. The author urges the TypeScript team to improve documentation support for literal unions in future releases.

Read more
Development enums literal unions

Sandboxed Development: A Year in a VM

2025-01-01

To avoid the pitfalls of a cluttered development environment, the author switched to a virtual machine setup. Running Ubuntu 24.04 within VMware Fusion Pro on macOS, all development tools and extensions reside inside the VM, providing a secure and isolated workspace. While some conveniences like seamless clipboard sharing are lost, the overall experience is smooth, with minimal performance impact on the host machine. The author finds this approach offers long-term stability and security benefits, outweighing the minor inconveniences.

Read more