Syntax error when interpolating a quoted operator into a quoted expression

Any idea why that’s not allowed?

I guess (without any deep understanding of what’s going on) interpolation happens after lowering.

So :(b > $sym) is first lowered to :(>(b, $sym)) and then interpolation happens. Whereas :(1 $op 2) is invalid syntax because it doesn’t recognize $op as an infix operator.

2 Likes