D vs C++
Don
nospam at nospam.com
Sat Dec 25 22:57:54 PST 2010
bearophile wrote:
> Walter Bright:
>
>> 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.
>
> You need to add some shades of grey to your palette. break, continue and goto are bad,
Why are break and continue bad? I haven't heard anyone make that claim
for a very long time.
BTW everyone I've known who thought they were evil, also wanted to ban
multiple return statements in a single function. Most of them didn't
like case statements, either.
More information about the Digitalmars-d
mailing list