File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ of commas and line breaks.
495495
496496=== Gather Trailing Parentheses [[gather-trailing-parens]]
497497
498- Place all trailing parentheses on a single line instead of distinct lines.
498+ Place trailing parentheses on a single line instead of distinct lines.
499499
500500[source,clojure]
501501----
@@ -509,6 +509,21 @@ Place all trailing parentheses on a single line instead of distinct lines.
509509)
510510----
511511
512+ An exception to the rule is a rich comment for REPL-oriented programming,
513+ lest gathering the comment's closing parenthesis make the last form in the comment harder to use.
514+ A rich comment's closing parenthesis may be on the next line.
515+
516+ [source,clojure]
517+ ----
518+ ;; good; rich comment ends on the next line
519+ (comment
520+ (range 5)
521+ (interpose '* (range 5))
522+ (->> (range 5) (interpose '*))
523+ (= *1 *2)
524+ )
525+ ----
526+
512527=== Empty Lines Between Top-Level Forms [[empty-lines-between-top-level-forms]]
513528
514529Use a single empty line between top-level forms.
You can’t perform that action at this time.
0 commit comments