rlwhitcomb / utilities

Some of my personal utility programs
MIT License
2 stars 0 forks source link

Output destination for "$echo" directive doesn't work #616

Closed rlwhitcomb closed 11 months ago

rlwhitcomb commented 1 year ago

For instance,

$echo 'hello', both

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" ...

rlwhitcomb commented 1 year 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...

rlwhitcomb commented 11 months ago

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.