Quote:
Originally Posted by Damien
If someone wants to add lines they can easily add them. It's just personal choice. Neither is better than the other.
|
With java the sun coding standards say you should have the braces even if it's just one line.
Though that said they also say you should avoid the compound if statement because some programmers find it hard to understand - my opinion is if you can't understand it then you shouldn't be a programmer...