Bozhidar Batsov
Bozhidar Batsov
> To start with, I take it for granted that this clojure-style-guide is used by organizations that write clojurescript, if I'm wrong please close or there's another clojurescript style-guide out...
I don't know. I usually go with multi-arity when the params for a function are stable. Here's some thoughts that resonate with my perspective https://stuartsierra.com/2015/06/01/clojure-donts-optional-arguments-with-varargs Any thoughts from someone else?
I'm not against changing this, if it's actually used in practice, but I'm kinda wondering - do you still align arguments at all using using 2-space indent or not. Probably...
Btw, Graham is known for his unidiomatic Lisp style. :-)
@Deraen I wondered if you'd write: ``` (filter even? (range 1 10)) ``` or ``` (filter even? (range 1 10)) ``` On the subject of books - PCL using single-space...
That's what I thought and that's why I think the 1-space rule is better - you always align the elements, instead of coming up with a superficial need not to...
> I suspect this is just a taste thing, and I have no plans to change Cursive's default. I think that CIDER should provide a setting for this though, if...
OK. This should be relatively easy to implement. I've filed a ticket to track the task here https://github.com/clojure-emacs/clojure-mode/issues/362
`clojure-mode` now supports this indentation style, so we can get back to discussing the merits of the two approaches (btw, `clojure-mode` actually supports 3 indentations style - always indenting arguments...
Probably you're right. And while I'm open to updating the guide in some way, as long as I'm the steward of `clojure-mode` the default there will never be changed.