-
Notifications
You must be signed in to change notification settings - Fork 94
[breaking] remove index_value function #1491
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
Conversation
It can be quite useful for solver wrappers to get the vector of index values from the vector of indices using broadcast. No solver use that ? |
If solvers need it they can define it themselves. There's also |
It would be more readable if solvers use all a same documented way for doing so
I agree but it does not seem that we would need to ever break this function. OTOH, it's true that we may not want to have two ways to do the same thing so it all depends whether we would consider |
It can't be that useful, because it isn't used anywhere in the whole of MOI. (Including in the tests...) |
Bump. |
There is only one instance of someone using this: and that's @Azzaare: |
I am on my phone atm so it will difficult to make the changes, but I don't mind updating the code to not use this function. If one of you has a suggestion, I will update once I'm back home. EDIT: I can change it to the get_field method above, but it does feel a bit like a hack haha. As long as it works, I don't mind. |
You never use broadcast. You only use I think it's safe to standardize the API on |
I found where it used to be used: MathOptInterface.jl/src/Utilities/copy.jl Line 95 in f559840
thanks to the JuliaHub search engine: https://juliahub.com/ui/Search?q=index_value&type=code&w=true |
Since it is a breaking change, I suppose you will tag a new minor version. In that case, you can merge this PR independently of CBLS.jl and I will make the change at the same I change the compat entry in the Project.toml If for some reason the version will still be 0.9.x, let me know, and I will update before MOI. |
Yes. We're well into breaking change territory. The next release will be 0.10 and require lots of changes. |
These functions were not called anywhere. We should remove unused things. People can just use
.value
.