This following code fails without a comma after a = 0.
When we add the missing comma, running the formatter crystal tool format removes it (tested in master):
macro test(
a = 0
)
end
Syntax error in test.cr:2: unexpected token: NEWLINE (expected ',' or ')')
No problems when not setting defaut values for arguments, or all arguments is in one line.
There are two options:
def - make macro works without an ending comma.IMO only option no. 1 seems legit.
Most helpful comment
IMO only option no. 1 seems legit.