This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-06
Channels
- # admin-announcements (1)
- # alda (2)
- # beginners (5)
- # boot (59)
- # clara (6)
- # cljs-dev (40)
- # cljsrn (32)
- # clojure (28)
- # clojure-austin (1)
- # clojure-belgium (67)
- # clojure-greece (60)
- # clojure-ireland (1)
- # clojure-japan (1)
- # clojure-russia (55)
- # clojure-spain (14)
- # clojure-spec (39)
- # clojure-uk (26)
- # clojurescript (152)
- # clojurewerkz (1)
- # cursive (21)
- # datomic (3)
- # dirac (15)
- # emacs (7)
- # events (2)
- # funcool (4)
- # hoplon (43)
- # immutant (1)
- # lambdaisland (1)
- # lein-figwheel (6)
- # leiningen (1)
- # off-topic (1)
- # om (23)
- # onyx (67)
- # other-languages (6)
- # pedestal (7)
- # planck (13)
- # proton (3)
- # protorepl (2)
- # re-frame (6)
- # reagent (5)
- # ring-swagger (6)
- # spacemacs (1)
- # specter (2)
- # yada (27)
What do people who are writing scripts for Planck do when it comes to using spit
, and other things that are at the top-level in Clojure but require an import in Planck?
I'd like to write "scripts" that will work as-is in Clojure as well as Planck, but can't do that when I use spit
etc.
Oh, in your ns? If I (:require [planck.core :refer [spit]])
, will that not make Clojure yell?
Yeah, Clojure will get mad since it can't find Planck. I am talking about Clojure (not cljs) because often I'll write little projects and because lein run
is so slow, I often switch to planck
But not this nice workflow doesn't work for code using spit
, slurp
, format
, and usually I just make a Planck-only version, but it'd be nice to have a single file for lein/clojure and for planck
I guess the Lisp way would be to keep the lein repl open all the time and reload my functions into it as they change 😛 I can try that
Is it possible to add custom reader conditionals? It seems like that would be the right solution here if its doable. I didn’t find anything from a quick google talking about registering a new platform though.
Theres a note at the bottom of the design page for reader conditionals but sounds like its a potential future feature and I doubt there has been any work done to support it yet: http://dev.clojure.org/display/design/Reader+Conditionals