You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can see it being useful in case you want to access the first element and have your code error in case there is more than one element. It's also the syntax for dereferencing a Ref so if you think of a Vector as a pointer to the first element it kind of makes sense
The syntax
x[]
works ifx
has only one element:This doesn't work anywork for a vector with JuMP types because of #3237
This broke DiffOpt for instance: jump-dev/DiffOpt.jl#238
The text was updated successfully, but these errors were encountered: