[new] Extend IIFE-wrap to Clj

The perf hit is negligible, and we can always re-evaluate this choice again
later. In the meantime, let's err on the side of greatest compatibility.
This commit is contained in:
Peter Taoussanis 2024-09-26 10:10:18 +02:00
parent f7a56631c5
commit d0ad99d528

View file

@ -777,8 +777,9 @@
( ~'__run-result signal#)
true))))]
(if cljs?
`((fn [] ~final-form)) ; IIFE wrap for use in `go` and other IOC-style bodies
(if-let [iife-wrap? true #_cljs?]
;; Small perf hit to improve compatibility within `go` and other IOC-style bodies
`((fn [] ~final-form))
(do final-form)))))))
(comment