add method to produce view with swapped axes#1482
add method to produce view with swapped axes#1482jonaspleyer wants to merge 1 commit intorust-ndarray:masterfrom
Conversation
|
Maybe @akern40 has a different opinion, but I don't think we want to add that kind of function. Having too much functions hurts discoverability. |
|
Ya this is a recurring topic in our PRs, and one that I think needs addressing more thoroughly. I think @nilgoyette is right - this function turns a two-liner into a one-liner, and I'm not sure it's worth the impact on the discoverability. However, I also think we need to come up with some sort of reasoning for which methods to accept so that contributors can understand what kinds of functions we would accept, or what the criteria are for acceptance. |
|
Thanks for the response. I can very much relate to your viewpoint. My proposal would be to add a note (by using templates) when creating a new PR or Issue in Github. By using such templates, contributors will get notified. If they ignore said notes, it is easy to point to them. |
|
Thanks for understanding, and for the suggestion - I'd love to have a template we could use, eventually. First, we need to work with the community to articulate which functions we want and which we don't. |
I have opened a new discussion to come up with possible guidelines. However I think we could still add a note which points to said discussion which basically says: |
|
Closing this in favor of #1493 |
Instead of calling
we can now simply do