From d0ad99d52855766d9e5232bdbd854e949ace604b Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Thu, 26 Sep 2024 10:10:18 +0200 Subject: [PATCH] [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. --- 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 4d8cce7..858249a 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