-
Notifications
You must be signed in to change notification settings - Fork 20
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
consistently accept input shape as a static array only #337
Comments
|
I am not against it, but need more opinions about this. |
|
I'm in favour of this, because users can always use I think the 1D case should perhaps stay working without being an array, would seem like unnecessary noise to add [] there. |
|
But all other functions ? Like transposed and iotaSlice |
|
i think yes. Consistency is good here. Also, being able to add extra arguments in the future will help maintain flexibility in the future (very important, particularly once |
|
Ping DCV contributors @ljubobratovicrelja @henrygouk @DmitryOlshansky. What is your opinion about this breaking change? |
|
I personally like the variadic approach, and would not forcibly replace it with static array. Say for the I think I'm already used to the present API, which mostly works with variadics, and I haven't had any trouble with it - I really cannot tell how I would feel with newly proposed syntax. That's just my subjective view on it. But, obviously since python (numpy) users feel the inconsistency, I suppose there's a real trouble here. Might be good idea to ping some more people, or even have the forum thread about it? (or maybe not the forum thread since we've seen how the simplest debate can burst into flames there...) |
|
Hmm I think actually there's a distinction between arguments that are shapes (e.g. argument to |
|
Forum voting/discussion http://forum.dlang.org/thread/lxsuvoxqjiecjenrfvtj@forum.dlang.org |
|
According to the forum discussion (appr. equal Yes/No and small activity) I close this issue with wontfix. |
I'd like mir to consistently accept input shape argument as a static array, never as separate indexes, kind of like numpy:
Currently in mir this all works:
Several reasons for changing this:
auto a7aboveThe text was updated successfully, but these errors were encountered: