You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for cljfmt - coming from other languages with such tools, this feels essential
When I define a new macro:
(defmacro when-valid
...)
And then use it, it makes sense for me to keep some of the arguments on the same line with the macro invocation:
(when-valid var set-of-rules
(do 1...)
(do 2...))
However, cljfmt will reformat this as follows:
(when-valid var set-of-rules
(do 1...)
(do 2...))
Because it wants to line up all the "call" arguments together, similarly to what's done for function calls. But for many macros it's inappropriate, since they have two logically separate sets of arguments
The text was updated successfully, but these errors were encountered:
Thanks for cljfmt - coming from other languages with such tools, this feels essential
When I define a new macro:
And then use it, it makes sense for me to keep some of the arguments on the same line with the macro invocation:
However, cljfmt will reformat this as follows:
Because it wants to line up all the "call" arguments together, similarly to what's done for function calls. But for many macros it's inappropriate, since they have two logically separate sets of arguments
The text was updated successfully, but these errors were encountered: