DEV Community

Discussion on: How I want my command inputs, but nobody agrees

Collapse
 
secretlyjaron profile image
Not Jaron

In C/C++ you could do something like this with XMacros so the mapping gets taken care of at compile time. Might be able to come up with a solution using this: internals.rust-lang.org/t/x-macro-... - Kind of a pain to set up, though!