This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-19
Channels
- # aatree (33)
- # admin-announcements (70)
- # alda (6)
- # aleph (2)
- # announcements (6)
- # aws (7)
- # beginners (40)
- # bitcoin (1)
- # boot (138)
- # cider (24)
- # cljs-dev (9)
- # cljsjs (18)
- # cljsrn (35)
- # clojars (4)
- # clojure (211)
- # clojure-art (4)
- # clojure-austria (2)
- # clojure-hamburg (8)
- # clojure-russia (66)
- # clojure-sg (3)
- # clojured (1)
- # clojurescript (73)
- # cursive (9)
- # datomic (124)
- # dirac (8)
- # editors (3)
- # emacs (13)
- # euroclojure (10)
- # hoplon (207)
- # jobs (4)
- # ldnclj (27)
- # lein-figwheel (3)
- # leiningen (10)
- # mount (5)
- # music (1)
- # off-topic (9)
- # om (92)
- # onyx (36)
- # perun (30)
- # proton (47)
- # re-frame (11)
- # reagent (11)
- # ring-swagger (7)
- # yada (2)
@malabarba: Thanks for the tip! I've set it up and it works a treat. Thankyou. :thumbsup:
@bozhidar: What's best place to discuss about style-guide? I would like to hear reasons behind single space indent for functions and hearing what's public opinion on that. I don't see it used much.
and it’s not a rule we can really change as there is so much Clojure code abiding by this rule
I'm not sure about Lightable but Vim and Cursive indent always with 2 spaces
Also both book mentioned in style-guide indent such cases with 2 spaces (though there is not many such cases and they have quite many errors with indentation)
Way I see it, it would be simpler to just indent everything with 2 spaces by default instead of specifying that macros with body are indented with 2 spaces and other stuff with single space.
Though this wouldn't be problem if all editors had same defaults and libraries used indent metadata. But I doubt Cursive and Vim are going to change the defaults in this.
There is plenty of code which uses 2 spaces: https://github.com/ring-clojure/ring/blob/master/ring-core/src/ring/middleware/nested_params.clj#L50-L54
I created an issue for dicussion