Hacker News new | ask | show | jobs
by krona 478 days ago
> const enums are almost never mentioned by these articles for some reason.

I think it's because a lot of tooling (excepting TSC) doesn't support cross-file const enums. But I agree - it's one of the reasons I started using TypeScript way back in 2013. I wouldn't be able to write comprehensible performance sensitive code without it.