This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-26
Channels
- # beginners (74)
- # cider (3)
- # cljsrn (1)
- # clojure (182)
- # clojure-dev (4)
- # clojure-europe (1)
- # clojure-spec (5)
- # clojure-uk (58)
- # clojurescript (44)
- # core-async (5)
- # core-logic (10)
- # cursive (6)
- # datomic (13)
- # duct (1)
- # fulcro (2)
- # graalvm (4)
- # leiningen (1)
- # off-topic (7)
- # overtone (6)
- # random (3)
- # re-frame (17)
- # reitit (2)
- # shadow-cljs (6)
- # spacemacs (4)
- # sql (12)
- # tools-deps (3)
[stupid question] why was if-not
not implemented by exchanging then
and else
? https://github.com/clojure/clojure/blob/clojure-1.9.0/src/clj/clojure/core.clj#L765
➕ 4
I don't think it's a stupid question. I've asked this before (I tried to find this conversation, but couldn't find it). I think it's for readability reasons. The overhead is considered to be negligible (mostly macrotime)
👍 4
Avoids the need and slight extra time to do a bit in the expression, likely
Sorry missed one not in your question :)