The good point is that you can write parenthesis nevermind that you can write without them. If you want to write them you are wellcome: if(a == b) { return 1; } else { return 2; } If you don't want you can write: if a == b { return 1; } else { return 2; } If you allways write curly brackets you do not have a problem with understanding the code.