Fork me on GitHub
#clojure-dev
<
2018-01-14
>
gfredericks17:01:06

Any reason not to refactor this macro impl to only insert x once instead of twice? https://github.com/clojure/spec.alpha/blob/master/src/main/clojure/clojure/spec/alpha.clj#L1939

gfredericks17:01:25

seems like it would make the compiled code smaller with no downside I can see

gfredericks17:01:33

happy to make a ticket&patch

gfredericks17:01:43

(I assume you could also demonstrate exponential macroexpansion blowup by nesting s/assert calls)