Hacker News new | ask | show | jobs
by ape4 2837 days ago
This only an issue if you want to have many hardcoded strings in a switch. If you want that, there is a probably a better way to organize the code.
1 comments

I'd assume that in most cases where this comes up, you're not exactly in a position to not use those strings, e.g. because they're defined in an input format you're processing.