Welcome! Please see the About page for a little more info on how this works.

0 votes
in Compiler by

This allows expressions like (cond (some-expr) 1 :else 2) to be eligible for unboxed use, which is not currently possible since the cond macro always ends up with a nil else branch that the compiler currently takes into account.

With the attached patch, the trailing (if :else 2 nil) in the macroexpansion will be treated as 2 by the Compiler, thus allowing the unboxed usage of the cond expression.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1598 (reported by bronsa)
...