While playing around with
Dicts, I found that I was not able to use the do-block syntax, e.g.
get(a, key) do @warn "Key not found. Falling back to default" default end
a is of type
Base.ImmutableDict instead of
Dict. Is there a reason it isn’t implemented, and is there a workaround I can use instead? (I guess I could make a custom version of the function by looking at dict.jl on GitHub though I’m not sure that’s the best idea)