Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b0f8588

Browse files
Merge pull request #263 from pbwolf/issue-259
A rich comment's closing parenthesis may be on the next line (issue #259)
2 parents bc79cb7 + b35c948 commit b0f8588

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

‎README.adoc

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff 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

514529
Use a single empty line between top-level forms.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /