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.

Reply via email to