Open nickrobinson251 opened 5 years ago
I think that fits with https://github.com/JuliaArrays/AxisArrays.jl/pull/152
So rather than names
we'd use propertynames
I suppose. (Side note: I'm not sure why Base even has the distinction between names
and propertynames
, given that access to module bindings goes through getproperty
. Might be an oversight.)
The more i think about this, the less keen I am on it. I think axisnames
is a fine name.
Although I do wish it had the behaviour I mentioned.
I had expected
names
to work i.e.but these all give MethodErrors -- I instead need to use
AxisArrays.axisnames(A)
andAxisArrays.axisname(A.axes[1])
(and there is noAxisArrays.axisnames(A.axes)
).The precedent for extending
Base.names
comes from DataFrames.jl e.g.