The Clojure Style Guide
This Clojure style guide recommends best practices so that real-world Clojure programmers can write code that can be maintained by other real-world Clojure programmers. A style guide that reflects real-world usage gets used, and a style guide that holds to an ideal that has been rejected by the people it is supposed to help risks not getting used at all — no matter how good it is.
The Clojure Style Guide The Clojure Style Guide Table of Contents Introduction Guiding Principles A Note About Consistency Translations Source Code Layout & Organization Maximum Line Length Tabs vs Spaces Body Indentation Function Arguments Alignment Function Arguments Indentation Bindings Alignment Map Keys Alignment Line Endings Terminate Files With a Newline Bracket Spacing No Commas in Sequential Collection Literals Optional Commas in Map Literals Gather Trailing Parentheses Empty Lines Between Top-Level Forms No Blank Lines Within Definition Forms No Trailing Whitespace One File per Names
Explore this link on the map →saved by
related reading
- Good examples of Clojure macros usage which demonstrate advantages of the language over the mainstream? - Stack Overflowstackoverflow.com
- Radarjuxt.pro
- Clean Coder Blogblog.cleancoder.com
- My Clojure Workflow, Reloadedcognitect.com
- Val on Programming: What makes a good REPL?vvvvalvalval.github.io
- A Retrospective on PAIPnorvig.com
- Bringing Clojure programming to Enterpriseblogit.michelin.io
- CSC 151 - Code Formatting and Styleeikmeier.sites.grinnell.edu
- Reddit - Please wait for verificationreddit.com
- styleguide | Style guides for Google-originated open-source projectsgoogle.github.io
- Command Line Interface Guidelinesclig.dev
- Rise of Worse Is Betterdreamsongs.com