Y
Hacker News
new
|
ask
|
show
|
jobs
by
dgb23
1209 days ago
This is very typical for parsers (characters) and compilers (machine/bytecode).
You could do it with namespaces and `const` though to be less verbose.