-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get key from dict with default #173
Comments
Can't you write this using long path assignment?
Maybe the enhancement is to allow use of ?= to local variables? |
I am not sure if I guess that @stdweird RFE is more for global variables anyway... I agree that it would simplify some templates.... |
i propose to rename it to |
I like the idea and I like the name |
@ned21 any objections? |
As mentioned at LAL workshop, should check if it makes sense to implement it as an extension of |
No objections. The default would only apply if the first arg evaluates to undef.
|
related to discussion in #167
it would be nice if function
get
(or other function name) could support dicts, egget(adict['key'], "somedefault")
e.g.would be replaced by
The text was updated successfully, but these errors were encountered: