Re: Pet peeve: optional comma
I prefer A, even though some claim it is wrong. I like A bacuase, in rare cases, B can lead to ambiguity and I am a nit. I also like having my opening brace on its own line, even though most IDEs and text put them on the line with the block definition.
(For the non coders,
<font class="small">Code:</font><hr /><pre>
public void useless() {
int x = 0;
}
</pre><hr />
is far infrerior to
<font class="small">Code:</font><hr /><pre>
public void useless()
{
int x = 0;
}
</pre><hr />
though
<font class="small">Code:</font><hr /><pre>
public void useless() {int x = 0;}
</pre><hr />
is ok by me.)
|