-
Notifications
You must be signed in to change notification settings - Fork 9
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
use the compact f(x::AbstractVector{<:Number}) syntax #33
Comments
Those do actually mean different things to the system. I guess @JeffBezanson should judge whether or not this rewrite would be ok. |
Yeah I guess it requires F to never appear in the function body. If there are other important differences that would also be really useful to know :-) |
Fortunately (on master) those should dispatch exactly the same (or else we'd now consider it a bug). However, @mkborregaard is right that this transformation is only safe if This variation would also be good to support:
to
(also, of course, where |
Ok, can do. Just making sure we don't rely on this in specialization heuristics, etc. |
Yes, I think it still affects specialization, but the cases where that's needed should be very rare. We can deal with those cases individually as they arise. I might even suggest that if you think you need such specialization but don't have the benchmarks to prove it, then you don't really :) |
Should we have some sort of macro that people can use to indicate that they really do want the specialization behavior (similar to what we did with what used to be |
At that point, wouldn't it be better to let them just directly ask for the specialization, instead of having it be coupled with the way you write the method signature and telling the bot not to undo it? |
Just to hear if I'm understanding this correctly - my impression is that at some point this will be implemented, when that happens the femtocleaner PR will be automatically updated, and I should just hold on merging that until then? |
I have
the bot suggests
but I'd prefer
here: JuliaPlots/Plots.jl#1036 (comment)
The text was updated successfully, but these errors were encountered: