flâneur — a map of the web's best reading

The Clojure Style Guide

guide.clojure.style · 15,104 words · saved by 1 readers

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