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
Clarify if
indentation
#229
Comments
All macros/special forms that take a body parameter are indented differently, so I don't think there's anything special about the handling of |
|
Yeah, I guess that's a valid point. Perhaps the bare |
By my reading of https://github.com/bbatsov/clojure-style-guide#vertically-align-fn-args, we should indent
if
like so:...but that's contradicted by other examples in the guide, which use the common two-space indentation for
if
. 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.)
The text was updated successfully, but these errors were encountered: