This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-27
Channels
- # announcements (2)
- # aws (17)
- # babashka (13)
- # beginners (84)
- # calva (46)
- # chlorine-clover (40)
- # cider (19)
- # clojure (27)
- # clojure-australia (1)
- # clojure-europe (84)
- # clojure-nl (2)
- # clojure-uk (49)
- # clojurescript (65)
- # core-async (6)
- # cryogen (1)
- # cursive (11)
- # datomic (13)
- # etaoin (3)
- # jackdaw (5)
- # jobs (2)
- # kaocha (34)
- # minimallist (6)
- # off-topic (17)
- # pathom (2)
- # pedestal (11)
- # re-frame (8)
- # reagent (5)
- # rewrite-clj (19)
- # shadow-cljs (30)
Something strange. In my require i have
[re-frame.context :as re-frame :refer [defc]]
(it's a fork of re-frame)
But later down in the text, where i have re-frame/subscribe
cursive offers to require the ns
Why does cursive format tagged literals like this:
#kaocha/v1
{:plugins [:kaocha.plugin/profiling
:kaocha.plugin/print-invocations
:kaocha.plugin/cloverage
:kaocha.plugin.alpha/spec-test-check]}
and not like
#kaocha/v1
{:plugins [:kaocha.plugin/profiling
:kaocha.plugin/print-invocations
:kaocha.plugin/cloverage
:kaocha.plugin.alpha/spec-test-check]}
?cljfmt
does something similar, although only one space indent. Maybe it is to show what is tagged? It makes a bit of extra sense when readers stack. Like so:
#kaocha/v1
#foo/bar
#baz
{:plugins [:kaocha.plugin/profiling
:kaocha.plugin/print-invocations
:kaocha.plugin/cloverage
:kaocha.plugin.alpha/spec-test-check]}
I don’t think I did it on purpose in Cursive, it’s probably just an artifact of sub-elements in the AST being indented by default. I’d have expected 2 spaces rather than 4, though.
My personal preference would be to have no indentation for these: a) they belong together b) that would match my teammates' spacemacs default formatting 😁
I’m reading in the docs that ~file-namespace is supposed to sub in REPL commands as the current namespace. It is not expanding for me. Is this a typo in docs?
I figured it out. Strange issue, but here it is:
I wanted to reload the file myself (so I could catch compiler exceptions), and I tried this: (require '~file-namespace :reload)
in the REPL command. That did not expand; however, if I do this it works:
(let [n '~file-namespace]
(require n :reload))