Open nickcernis opened 6 years ago
Funny, I just raised this issue independently:
https://github.com/bbatsov/clojure-style-guide/issues/162
Mine is concerned with fn calls though. I'd say for calls, the generally better choice is quite clear. For data/defs (such as your example) there's more room for subjectivity.
In your example, I'd prefer the former as:
I think I've seen way more usages of the first style in the wild. Someone has to check this, though. Generally I don't have any issues with recommending this in the guide.
Should Clojurists favour narrow formatting with top-level forms on new lines, like this:
Or wider formatting that avoids splitting forms with line breaks unless they extend beyond 80 characters, like this?
I find the first version easier to scan but don't see any general advice in the guide about this.