Closed rlwhitcomb closed 11 months ago
It would be kinda nice if the lookup order was:
And then, once we have that code written, go back and evaluate other places with keyword/option things like this and do a similar thing.... (directive modes, trig modes, etc.)
Then, if there was an interface with a single "fromString(String)" method, implement that in all the appropriate enums, and then add that interface as a parameter to the decoding method...
I don't have the interface idea coded yet, and it may be overkill anyway, so I'm going to close this issue, and maybe make a new one (later?) for that refactoring.
For instance,
only outputs the text once (instead of once to stdout and once to stderr).
This is because we are interpreting the second string as an "id" and looking up the value of the variable named "both" ...