[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changes I've been thinking of...

From: Nicola Pero
Subject: Re: Changes I've been thinking of...
Date: Sat, 10 Oct 2009 01:25:13 +0200

By the way the GNU coding standards are not bad, in fact I personally like
them (mostly because
my eyesight is really bad and whitespace is much more effective at
separating tokens than
brackets or commas). There are some details I'd change, but they certainly
are not an unusual
or weird choice for a large free software project.

To me it is about separating groups of tokens, e.g. if you are going
to separate like this

[thing foo: arg1 bar: arg2];

and insist on including that space between the 'foo:arg1' group,
the whole message send looks androgynous with parts of the selectors
mixed in with their arguments...

compared with
[thing foo:arg1 bar:arg2];

it is very easy for me to pick out which args go with which parts of
the selector, and
which message is being sent...

My personal preference is to do

 [thing foo: arg1  bar: arg2]

(Note the double-space between the two parts of the selector).

That way, I can easily visually tokenize it when I read it.

Of course, it's my personal preference and it's as good as any. ;-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]