Nicholas Clark [EMAIL PROTECTED] wrote:
=item *
Uncuddled elses: ie avoid C} else {
Does this mean avoid:
if (...) {
...
} else {
...
}
and instead use:
if (...) {
...
}
else
{
...
}
If my interpretation of what it means is correct, why is the latter style
I believe the advantage of
if (...) {
...
} else {
...
}
is to write very dense code, especially when the block itself is single
line.
This style may not be readable to some people.
This style is not very consistent,
if (...) {
...
}
else
{
...
}
I believe it would better