Parenthesis

NN nn-mail at bk.ru
Sat Dec 23 05:59:14 PST 2006


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.



More information about the Digitalmars-d mailing list