JuliaSyntax.jl icon indicating copy to clipboard operation
JuliaSyntax.jl copied to clipboard

Feature request: `do` with infix calls

Open MasonProtter opened this issue 1 year ago • 1 comments

I was disapointed today to learn that I can't write the following macro:

@forall x in y do a, b
    ...
end

because (x in y) do is a syntax error, one can only write in(x, y) do. Is this something reasonable to allow?

MasonProtter avatar Feb 11 '24 16:02 MasonProtter

You can do

@forall(x in y) do a, b
    # ...
end

savq avatar Feb 22 '24 21:02 savq