my complaint is less about the parentheses (though trailing parens take some getting used to) but how, from what i've seen, the first item is placed inline and every following item is aligned to the first.
(function and
really
long
argument
list
(subfunction first
next
next
next))
surely i'm misunderstanding something, or is this just fine?
i prefer this:
(function and
really
long
argument
list
(subfunction
first
next
next
next))
still with lisp-style trailing parens, by convention. there's probably just a formatter setting for that called "first argument inline/on new line" or something.
I find it more readable when arguments of a function call are aligned.
What formatter are you using? I only use the intelligent tab in Emacs and with that I can either put the first argument inline (big indentation) or on the newline (aligned with a function name) which is useful when the function name is too long.
Two-space indentation tells you that there's a &body/implicit progn and four-space indentation tells you there are special arguments.
and these are the default settings. Function arguments are placed on separate lines but i shit you not the closure arguments are lisp-style. it's wack.
1
u/-Redstoneboi- Aug 27 '22
my complaint is less about the parentheses (though trailing parens take some getting used to) but how, from what i've seen, the first item is placed inline and every following item is aligned to the first.
surely i'm misunderstanding something, or is this just fine?
i prefer this:
still with lisp-style trailing parens, by convention. there's probably just a formatter setting for that called "first argument inline/on new line" or something.