Hacker News new | past | comments | ask | show | jobs | submit
They still make sense in terms of clarity, readability and reusability. I use enum every time there are more than 2 entries -- literal types and "as const" are just ugly in comparison.

Not to mention that you can add documentation to each of the entries.

loading story #42770523
loading story #42770355