kennt jemand einen Namen für folgendes Vorgehen (Imho ein Anti-Pattern)?
Code: Alles auswählen
def foo():
# artificial flag
continue_ = True
if continue_:
# some calls
continue_ = result_of_some_call()
if continue_:
continue_ = some_other_action()
if continue_:
# ... and so on
# perhaps at the end
if !continue_:
# react on "error"
# or
return continue_
Irgend wie war mir so, dass ich dafür schon mal einen konzeptionellen Begriff gelesen habe... ich kann mich aber nicht erinnern und vielleicht irre ich mich auch (und ich könnte somit als erster einen Namen für diesen Murks prägen )