|
Posted by Jerry Stuckle on 11/24/05 18:30
jkmambo@gmail.com wrote:
> When you use one statement in an if-else block you dont need {} for all
> C type languages. {} are only used to group statements
>
No, you don't *need* them. However, I still add them in my code.
Overall it makes things more readable, IMHO.
It also means I don't have unanticipated problems when I add another
statement to a then or else clause.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|