-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
When something is dict-like, and defined getindex
like Node
does to access attributes,
I expect it to also provide get
to do that with a default.
julia> n = XML.Element("Foo"; x="bar")
Node Element <Foo x="bar">
julia> n["x"]
"bar"
julia> get(n, "x", "default")
ERROR: MethodError: no method matching get(::Node, ::String, ::String)
The function `get` exists, but no method is defined for this combination of argument types.
Metadata
Metadata
Assignees
Labels
No labels