Hacker News new | ask | show | jobs
by trinovantes 1353 days ago
If you don't want enum's runtime footprint, just use `const enum`

Less typing and easier to read than your solution