why ; ?

Nick Sabalausky a at a.a
Thu May 8 11:05:46 PDT 2008


"Michael Neumann" <mneumann at ntecs.de> wrote in message 
news:fvvd7r$882$1 at digitalmars.com...
> Me neither. But it's annoying to have at least 3 different style 
> guidelines for C-style syntaxes.
>
>   if (a) b;
>
>   if (a)
>     b;
>
>   if (a) {
>     b;
>   }
>
>   if (a)
>   {
>     b;
>   }
>
(snipped)
> And so on :).
>
> Compare that with how many choices you have when using "if ... end"!
>

That's a very good point, I hadn't really thought about that (Personaly, I 
would want to keep the first two and just merge the rest of them into an 
"if...end"). Although that is more of a "{}" vs. "end" issue, and not 
directly related to "with or without semicolon". 





More information about the Digitalmars-d mailing list