Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Body on the same line as a conditional form #41

Open
deb0ch opened this issue Dec 4, 2016 · 2 comments
Open

Body on the same line as a conditional form #41

deb0ch opened this issue Dec 4, 2016 · 2 comments

Comments

@deb0ch
Copy link

deb0ch commented Dec 4, 2016

I'm wondering if there should be a convention for two other kinds of cases:

(when something do-something)

versus

(when something
  do-something)

or, as another case to be discussed separately:

(if foo bar baz)

versus

(if foo
    bar
  baz)

One might want to do that to save on lines when the condition and the body are short enough.

Should it be allowed, recommended, to avoid, forbidden, up to the writer ?

@xiongtx
Copy link
Contributor

xiongtx commented Apr 1, 2017

From what I've seen, it's a matter of taste.

@Fuco1
Copy link
Collaborator

Fuco1 commented Aug 15, 2018

What I really dislike is when if is in a "mixed" format

(if foo bar
  baz)

This is quite difficult to read. Oneliner is fine with me for "short" forms, but I try to avoid the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants