Patterns of Bugs
Iain Buclaw
ibuclaw at ubuntu.com
Sat Jan 8 07:24:50 PST 2011
== Quote from bearophile (bearophileHUGS at lycos.com)'s article
> Iain Buclaw:
> > On the note of if statements. One pattern of bugs I see on the odd occasion
are
> > else statements written like this:
> >
> > if (condition1)
> > if (condition2)
> > statement1;
> > else
> > statement2;
> >
> > Always takes a moment or two to look again and realise it wouldn't work as
> > expected without the missing braces added. ;)
> See:
> http://d.puremagic.com/issues/show_bug.cgi?id=4375
Yep, that's the one. :)
> http://d.puremagic.com/issues/show_bug.cgi?id=4924
I don't see that as a bug, and that enforces a certain coding style onto the end
programmer (does no one give thought/praise to obfuscation anymore? ;)
> http://d.puremagic.com/issues/show_bug.cgi?id=4283
That's certainly a nice looking bug there. But not related in the slightest.
Regards
More information about the Digitalmars-d
mailing list