You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== Terminate Files with a Newline [[terminate-files-with-a-newline]]
419
+
=== Terminate Files With a Newline [[terminate-files-with-a-newline]]
420
420
421
421
End each file with a newline.
422
422
@@ -460,7 +460,7 @@ Don't use commas between the elements of sequential collection literals.
460
460
(1, 2, 3)
461
461
----
462
462
463
-
=== Optional Commas In Map Literals [[opt-commas-in-map-literals]]
463
+
=== Optional Commas in Map Literals [[opt-commas-in-map-literals]]
464
464
465
465
Consider enhancing the readability of map literals via judicious use
466
466
of commas and line breaks.
@@ -494,7 +494,7 @@ Place all trailing parentheses on a single line instead of distinct lines.
494
494
)
495
495
----
496
496
497
-
=== Empty Lines Between TopLevel Forms [[empty-lines-between-top-level-forms]]
497
+
=== Empty Lines Between Top-Level Forms [[empty-lines-between-top-level-forms]]
498
498
499
499
Use a single empty line between top-level forms.
500
500
@@ -575,7 +575,7 @@ too much and could potentially be broken down.
575
575
576
576
Avoid trailing whitespace.
577
577
578
-
=== One File Per Namespace [[one-file-per-namespace]]
578
+
=== One File per Namespace [[one-file-per-namespace]]
579
579
580
580
Use one file per namespace and one namespace per file.
581
581
@@ -704,7 +704,8 @@ considered deprecated for new code.
704
704
(:use clojure.zip))
705
705
----
706
706
707
-
=== Sort requirements and imports [[sort-requirements-and-imports]]
707
+
=== Sort Requirements and Imports [[sort-requirements-and-imports]]
708
+
708
709
In the `ns` form, sort your requirements and imports. This facilitates readability and avoids duplication, especially when the list of required / imported namespaces is very long.
709
710
710
711
[source,clojure]
@@ -891,7 +892,7 @@ Use `lisp-case` for function and variable names.
891
892
(def some_fun ...)
892
893
----
893
894
894
-
=== Protocols, Records, Structs And Types [[naming-protocols-records-structs-and-types]]
895
+
=== Protocols, Records, Structs and Types [[naming-protocols-records-structs-and-types]]
895
896
896
897
Use `CapitalCase` for protocols, records, structs, and types. (Keep
897
898
acronyms like HTTP, RFC, XML uppercase.)
@@ -1081,7 +1082,7 @@ function name.
1081
1082
(baz x))
1082
1083
----
1083
1084
1084
-
=== Oneline Short Function [[oneline-short-fn]]
1085
+
=== One-line Functions
1085
1086
1086
1087
Optionally omit the new line between the argument vector and a short
1087
1088
function body.
@@ -2605,7 +2606,7 @@ lines should be indented as much as the first one.
2605
2606
(baz))
2606
2607
----
2607
2608
2608
-
==== Sign And Date Annotations [[sign-and-date-annotations]]
2609
+
==== Sign and Date Annotations [[sign-and-date-annotations]]
2609
2610
2610
2611
Tag the annotation with your initials and a date so its relevance can
0 commit comments