Fork me on GitHub
#cider
<
2019-07-21
>
cfleming02:07:54

I’ve been looking at the Indentation Specification doc, and I have a couple of questions about it:

cfleming02:07:15

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?

cfleming02:07:29

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?

cfleming02:07:59

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?

cfleming02:07:21

Some of the examples in http://cider.mx are bad BTW, probably because [[]] is interpreted as a wikilink or something.