Is there a recommended way to format if..else blocks? I used to write my
code this way:

if(cond){
print()
}
else {
print()
}

You can't cut and paste this to the command line, so I've started to use:

if(cond){
print()
} else {
print()
}

Sometimes I don't need/use braces on the 'else' block
if(cond){
print()
} else
print()

In this latter case, ESS doesn't indent the second print statement. Would it
make sense for ESS to indent the line after "} else" or should I change my
coding style?

Comments welcome.

Kevin Wright

	[[alternative HTML version deleted]]


