This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-05
Channels
- # aleph (2)
- # beginners (93)
- # boot (9)
- # cider (1)
- # cljs-dev (50)
- # cljsrn (4)
- # clojure (32)
- # clojure-russia (58)
- # clojure-spec (23)
- # clojurescript (146)
- # clojurewerkz (2)
- # component (1)
- # cursive (2)
- # hoplon (163)
- # off-topic (4)
- # om (117)
- # onyx (8)
- # pedestal (1)
- # re-frame (13)
- # reagent (34)
- # spacemacs (17)
- # test-check (1)
- # untangled (3)
Found something that I cannot understand. New Leiningen project. I have an almost empty (`(ns user)`) user.clj file in dev folder. In project.clj: :source-paths ["dev"] :repl-options {:init-ns user}
. If I start REPL in Cursive and use "Send form before caret to REPL” to send (set! *warn-on-reflection* true)
from user.clj, it does return true in the REPL but warnings are not shown. If I instead paste (set! *warn-on-reflection* true)
directly in the REPL, warnings are shown. Why the difference?
The set! will only work when you are in the scope of a dynamic binding where it will retain its local binding