This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-21
Channels
- # aleph (7)
- # beginners (79)
- # calva (1)
- # cider (5)
- # clj-kondo (12)
- # clojure (7)
- # clojure-austin (1)
- # clojure-brasil (2)
- # clojure-chicago (1)
- # clojure-europe (2)
- # clojure-seattle (4)
- # clojurescript (68)
- # data-science (1)
- # datavis (1)
- # figwheel-main (2)
- # hoplon (2)
- # juxt (1)
- # leiningen (3)
- # luminus (8)
- # off-topic (65)
- # onyx (1)
- # pathom (12)
- # reagent (6)
- # reitit (3)
- # shadow-cljs (7)
- # spacemacs (5)
I’ve been looking at the Indentation Specification doc, and I have a couple of questions about it:
What is the difference between [1]
and [0]
? i.e. what is the difference between a special and non-special form when there’s only a single param? There are no further params to line up under it. Can someone give me an example of where the indentation for a form would differ with these two specs?
The spec doesn’t actually specify what should happen in the [1]
case above where there is no indent spec for the special param, I assume that its spec is implicitly :form
?
The example for letfn
is [1 [[:defn]] :form]
. Since all forms after the special params are considered standard non-special forms, does the final :form
here serve any purpose?
Some of the examples in http://cider.mx are bad BTW, probably because [[]]
is interpreted as a wikilink or something.