Closed oconnor663 closed 6 years ago
Maybe worth adding an explicit unset_env
method? That could also save trouble for callers who only want to unset one thing, and who don't want to go through the trouble of building up the entire env map. Could be worth it...
You might want to express something like "the variable
$FOO
must not be set for this expression, but any other variables given as outerenv
calls are fine." That's not currently possible, becausefull_env
will stomp on any outer env calls.The usual solution will be "just fold those outer
env
calls into the map you're giving tofull_env
." However, there might be some rare cases where you don't control the code callingfull_env
? Unlikely, but if there was an API that satisfied all possible use cases that would be cool :)