File tree 1 file changed +16
-1
lines changed
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.
495
495
496
496
=== Gather Trailing Parentheses [[gather-trailing-parens]]
497
497
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.
499
499
500
500
[source,clojure]
501
501
----
@@ -509,6 +509,21 @@ Place all trailing parentheses on a single line instead of distinct lines.
509
509
)
510
510
----
511
511
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
+
512
527
=== Empty Lines Between Top-Level Forms [[empty-lines-between-top-level-forms]]
513
528
514
529
Use a single empty line between top-level forms.
You can’t perform that action at this time.
0 commit comments