JuliaLang / JuliaSyntax.jl

The Julia compiler frontend
Other
272 stars 35 forks source link

Outdated note in the design doc #413

Open MasonProtter opened 7 months ago

MasonProtter commented 7 months ago

https://github.com/JuliaLang/JuliaSyntax.jl/blob/a6f2d1580f7bbad11822033e8c83e607aa31f100/docs/src/design.md?plain=1#L364

Unfortunately, this seems to no longer be true:

julia> JuliaSyntax.parsestmt(SyntaxNode, "@(a + b)")
ERROR: ParseError:
# Warning @ line 1:2
@(a + b)
#└─────┘ ── parenthesizing macro names is unnecessary
# Error @ line 1:8
@(a + b)
#      └ ── invalid macro name

... Is there something we can do to re-allow this? I really want infix macros.