Closed ianthehenry closed 1 year ago
It could also be implemented differently. Since we've already touched it, it may be worth addressing.
which I believe is not compatible with the desire to be able to reference the first binding form in the else branch.
It's not. Not expanding macros with side-effects more than once is more desirable and correct.
This is unrelated to the recent
if-let
changes --if-let
has always worked this way, but I found this very surprising:I would expect the else branch to only appear once in the expansion of
if-let
-- which I believe is not compatible with the desire to be able to reference the first binding form in the else branch.