-
Notifications
You must be signed in to change notification settings - Fork 307
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
Document reason for strongly typed Axis
?
#564
Comments
Doesn't axis doc have a short rationale? |
All the documentation states is:
Looking through the functions which use the
So ultimately, I still don't see why there's a need for |
Some good defenders of the newtype are IMO
Argument Conversion Traits and
|
Fwiw, I'd like to replace I do think it makes sense to keep a separate An alternative to having separate |
Thanks for the replies! I still think that I also really like the way |
FWIW in xarray we follow a similar approach to Numpy:
|
While using
ndarray
, I was wondering why certain methods use theAxis
type instead of justusize
, especially given thatAxis
is just a simple wrapper aroundusize
. I tried looking into the documentation, and could not find any explanation; and searching through past issues/pull requests, I found just #91, #96 and #97 (though none of them given a clear reason why this is the case).Would it be worth documenting this choice?
And is there a reason why
From<usize>
/Into<Axis>
isn't implemented forAxis
/usize
?The text was updated successfully, but these errors were encountered: