This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-22
Channels
- # announcements (4)
- # aws (1)
- # beginners (82)
- # boot (14)
- # braveandtrue (1)
- # calva (73)
- # cider (7)
- # cljs-dev (7)
- # cljsrn (1)
- # clojure (83)
- # clojure-belgium (1)
- # clojure-dev (3)
- # clojure-europe (4)
- # clojure-france (3)
- # clojure-italy (31)
- # clojure-nl (11)
- # clojure-uk (15)
- # clojurescript (19)
- # code-reviews (9)
- # cursive (16)
- # data-science (1)
- # datomic (16)
- # events (1)
- # fulcro (4)
- # graalvm (1)
- # hoplon (7)
- # jackdaw (5)
- # java (10)
- # jobs (6)
- # jobs-discuss (7)
- # juxt (1)
- # leiningen (6)
- # midje (1)
- # off-topic (2)
- # pathom (18)
- # pedestal (1)
- # reagent (8)
- # reitit (2)
- # ring (1)
- # shadow-cljs (38)
- # spacemacs (5)
- # sql (41)
- # vim (10)
- # xtdb (1)
@cfleming
> 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?
;; If indent-spec is [0]
(do
(something)
(quick))
(do (whatever)
(you)
(want))
;; If indent-spec is [1]
(do
(something)
(quick))
(do (whatever)
(you)
(want))
I'll answer your other questions in a moment. (Haven't messed with this stuff in a while, so I want to make sure I don't say something stupid 🙂 )
@malabarba I see, thanks. So CIDER will always line up a param after the head symbol, even if it’s on a new line? That seems odd, I don’t think I’ve ever seen that in the wild.