Dangling if

bearophile bearophileHUGS at lycos.com
Mon Oct 1 05:59:33 PDT 2012


Nick Sabalausky:

> I don't think there's ever been a time I've forgotten to add 
> curly braces when adding another statement to a one-statement 
> 'if' or 'else' clause.

Even if you never err on this, it's a known source of bugs (that 
Python and Go avoid) for average coders.

Bye,
bearophile


More information about the Digitalmars-d mailing list