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
The issue is that invoke(Core._apply, ...) doesn't work for any arguments. The easiest fix would be to make applicablenot lie about being able to call invoke with the given arguments, but I think it would be even better if invoke(Core._apply, ...) worked. 🙂
I discovered this when using Cassette to replace internal calls by invoke, but the fact that Core._apply can't be used with invoke breaks my assumption that f(x, y) == invoke(f, Tuple{typeof(x), typeof(y)}, x, y).
The text was updated successfully, but these errors were encountered:
Making invoke just work is probably the best thing to do. _apply and other "builtins" aren't generic functions, but they can probably consistently behave as if they had a single Any... method for most purposes.
This one has left me head scratching:
The issue is that
invoke(Core._apply, ...)
doesn't work for any arguments. The easiest fix would be to makeapplicable
not lie about being able to callinvoke
with the given arguments, but I think it would be even better ifinvoke(Core._apply, ...)
worked. 🙂I discovered this when using Cassette to replace internal calls by
invoke
, but the fact thatCore._apply
can't be used withinvoke
breaks my assumption thatf(x, y) == invoke(f, Tuple{typeof(x), typeof(y)}, x, y)
.The text was updated successfully, but these errors were encountered: