why ; ?
Michael Neumann
mneumann at ntecs.de
Thu May 8 10:28:23 PDT 2008
Nick Sabalausky wrote:
> "Michael Neumann" <mneumann at ntecs.de> wrote in message
> news:48231B20.1080009 at ntecs.de...
>> Actually, IMHO any C-style syntax has much more sever problems leading
>> to hard to find bugs:
>>
>> if (a)
>> s1;
>> s2;
>>
>
> I can't say I've ever found that to be a problem. But maybe that's
just me.
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;
}
if (a)
{
b;
}
if (a)
{
b;
}
And so on :).
Compare that with how many choices you have when using "if ... end"!
Regards,
Michael
More information about the Digitalmars-d
mailing list