Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Clarifyif indentation #229

Open
Open
@gpind

Description

@gpind

By my reading ofhttps://github.com/bbatsov/clojure-style-guide#vertically-align-fn-args, we should indentif like so:

(if condition    (f1)    (f2))

...but that's contradicted by other examples in the guide, which use the common two-space indentation forif. Technically the rule might not coverif since it's a special form and not a macro, but there's alsoif-let andif-some and it would be very weird IMO to indent them differently. It would be good to mention this explicitly, even if just to call outif and friends as exceptions.

(I searched for existing issues covering this, but the closest I found was#87.)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp