On 4 Apr, 08:20, Richard Heathfield <r...@see.sig.invalidwrote:
>
Secondly, let's take an example like this:
rc = myfunctioncall(arga,
argb,
argc);
which looks lovely with spaces.
Well, there is much debate about whether or not
that is lovely. Personally, I have never
liked that style. Much better (IMO) is:
rc = myfunctioncall(
arga,
argb,
argc
);
(With many variations on that theme.) The
notion of attempting to align all the arguments
to the first and anchoring the first argument
to the open paren is wrong-headed. If you
do like that, and still want to use tabs, you
can do things like:
rc = myfunctioncall( arga,
<tab to match indent of rc>/**/<spaces>argb,
The comment isn't necessary, but many
people (correctly) abhor mixing tabs and
spaces in indentation, and the emtpy comment
serves as a delimiter. But this particular
style (aligning arguments) is the only reason
to ever want to mix tabs and spaces, and (again
IMO) the correct solution is to abandon that
practice.