switch()

bearophile bearophileHUGS at lycos.com
Thu Feb 20 07:08:48 PST 2014


Steven Schveighoffer:

> What I really would be curious about is if in most D code, you 
> see a lot more default: break; than default: assert(0);

I have written tons of D2 code in the last years, and such 
"default: assert(0);" is quite uncommon in my code. Probably less 
than 8-10 usages in the whole code base.

Bye,
bearophile


More information about the Digitalmars-d mailing list