Skip to content

Add note about putting then and else forms on separate lines in if #243

Open
@camsaul

Description

@camsaul

I've seen code like

(if (or (something)
        (something-else))
  do-something do-something-else)

in the wild. I would like to be able to point to a style guide note about this. This doesn't apply of course to things like

(if x then else)

Where it's all on one line but if you're going to format it with multiple lines then put the then and else forms on different lines

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions