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
julia> (2,3)...
ERROR: syntax:"..." expression outside call around REPL[75]:1
but this doesn't:
julia>1, (2,3)...
(1, 2, 3)
Obviously, letting (2, 3)... == (2, 3) doesn't seem particularly useful on the surface, but I do find it useful in macros where I would like f(@g x, y) to mean f(@g(a), b) and @g x, y to mean (@g(x), y) which currently errors if @g(x, y) returns an Expr(:...). The reason I need to write the macro this way is because of #36547.
Currently this errors:
but this doesn't:
Obviously, letting
(2, 3)... == (2, 3)
doesn't seem particularly useful on the surface, but I do find it useful in macros where I would likef(@g x, y)
to meanf(@g(a), b)
and@g x, y
to mean(@g(x), y)
which currently errors if@g(x, y)
returns anExpr(:...)
. The reason I need to write the macro this way is because of #36547.See for example #38713 (comment) and https://github.com/MasonProtter/SimpleUnderscores.jl#caveats
The text was updated successfully, but these errors were encountered: