From 74c3e70f2c76063f4799bcb197267ba757826962 Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Thu, 26 Sep 2024 10:10:18 +0200 Subject: [PATCH] [nop] 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. --- projects/main/src/taoensso/telemere/impl.cljc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/main/src/taoensso/telemere/impl.cljc b/projects/main/src/taoensso/telemere/impl.cljc index b5fcf68..f8611ad 100644 --- a/projects/main/src/taoensso/telemere/impl.cljc +++ b/projects/main/src/taoensso/telemere/impl.cljc @@ -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