Fork me on GitHub
#cider
<
2019-07-22
>
malabarba13:07:46

@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))

malabarba13:07:49

Let me know if the example is clear.

malabarba13:07:20

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 🙂 )

cfleming21:07:53

@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.

dpsutton21:07:35

are you talking about this one?

(do (whatever)
    (you)
    (want))

dpsutton21:07:35

oh you mean the first example in [1]

cfleming20:07:15

Yeah, that one looks extremely strange to me.