Closed ericphanson closed 1 month ago
I actually don't think this is possible (outside of a macro):
julia> Meta.@lower 1 <= x <= 1
:($(Expr(:thunk, CodeInfo(
@ none within `top-level scope`
1 ─ %1 = 1 <= x
└── goto #3 if not %1
2 ─ %3 = x <= 1
└── return %3
3 ─ return false
))))
This syntax seems to lower directly to a short-circuiting expression, meaning we have no way to hook into it.
It would be nice if this worked.