News for hackers. Stuff that matters.
Re:TypeScript enums: use cases and alternatives by JimDabell on Monday January 20, 2025 @11:31AM (#42770255)
The difference between type stripping and implementing other behaviour is precisely what is being flagged as a problem with enums in this thread. If you only have type stripping – which is the present day situation for Node users – then using enums will break TypeScript that you would otherwise be able to execute.

There are no comments on this comment yet.