bbatsov / clojure-style-guide

A community coding style guide for the Clojure programming language
https://guide.clojure.style
4.01k stars 279 forks source link

Multi-line doc strings #2

Closed jeremyheiler closed 11 years ago

jeremyheiler commented 11 years ago

I'm never sure whether to do this:

(defn foo
  "hello there. this is
  a multi-line doc"
  (inc 1))

or this:

(defn foo
  "hello there. this is
a multi-line doc"
  (inc 1))

Thoughts?

bbatsov commented 11 years ago

The first one is the idiomatic in Clojure, the second is idiomatic in Emacs Lisp (maybe in other Lisp dialects as well).