You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
match(&value,&variable.default){(None,None) => {// --- here also .get from Env for the key/value as fallbackreturnErr(error::NoSuchVariable{position: variable.name_start,name: variable.name.to_owned(),}.into());},}
The text was updated successfully, but these errors were encountered:
This is currently already possible if you create a custom VariableMap and implement this logic there.
Or, you could simple create a map, fill it with entries from std::env::vars() and then insert other variables.
It would be possible to add combinators to variable maps, a bit like the combinators for iterators in the standard library. But I'm not sure if it would really be worth the added complexity.
Like below:
The text was updated successfully, but these errors were encountered: