bbatsov / emacs-lisp-style-guide

A community-driven Emacs Lisp style guide
1.08k stars 53 forks source link

Which is better "when-and" layout? #46

Closed yuzumx closed 7 years ago

yuzumx commented 7 years ago

Hello, and sorry for my poor English.

So I often write some when-and statements, which is better written?

  1. (when (and (sth1) (sth2))
    (body))
  2. (when (and (sth1)
           (sth2))
    (body))
tumashu commented 7 years ago

if sth1 and sth2 is very very long, I prefer 2

yuzumx commented 7 years ago

Then……

What kind of style do you prefer in these both cases ?

I prefer the 2 in B, and 1 in A now.

yuzumx commented 7 years ago

Stop this boring argument. Boring ...