for / while else doesn't make sense

Random832 random832 at fastmail.com
Wed Jun 15 11:54:01 EDT 2016


On Wed, Jun 15, 2016, at 10:20, Rustom Mody wrote:
> Claim is that the damaging propensities of goto are replicable with
> break.

The "damaging propensity" in this particular case simply comes from the
fact that it's a statement that can appear in the body of an if
statement (the real flaw that caused the bug here here was the optional
braces of the if statement), which is just as true of anything else. It
could have called a function that it shouldn't have called.

But a lot of people do claim that break should be generally "considered
harmful" just like goto and never used at all because of this
isomorphism.



More information about the Python-list mailing list