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 cover if since it's a special form and not a macro, but there's also if-let and if-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 out if and friends as exceptions.
(I searched for existing issues covering this, but the closest I found was #87.)
By my reading of https://github.com/bbatsov/clojure-style-guide#vertically-align-fn-args, we should indent
iflike 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 coverifsince it's a special form and not a macro, but there's alsoif-letandif-someand it would be very weird IMO to indent them differently. It would be good to mention this explicitly, even if just to call outifand friends as exceptions.(I searched for existing issues covering this, but the closest I found was #87.)