D vs C++

Walter Bright newshound2 at digitalmars.com
Sat Dec 25 14:03:42 PST 2010


bearophile wrote:
> Structured programming is good because it usually helps code readability. But
> it's not Verb, so in some less common cases a goto, break or continue help
> improve the code.
> 
> Misra C Rules totally forbid break and continue, but more human coding
> guidelines just suggest to avoid them when possible, they are not evil.


I thought the idea that break and continue were bad died about 25 years ago. 
Pascal didn't allow them, and pretty much everyone hated the workaround of 
having to use flag variables.


More information about the Digitalmars-d mailing list