Brackets as an operator

No, {}s are OK in the AST so a macro can deal with them, but they don’t lower to a method you could dispatch on.

FWIW an infix operator would be my first choice for anything like this. There are so many to choose from.

2 Likes