近道ではなく、複数のブロックに足を踏み入れることを好む特定の理由はありますか? たとえば、複数の条件が評価される次の 2 つの関数を考えてみましょう。最初の例は各ブロックにステップインするもので、2 番目の例はショートカットです。例は Python で書かれていますが、質問は Python に限定されません。それも過度に矮小化されています。
def some_function():
if some_condition:
if some_other_condition:
do_something()
対。
def some_function():
if not some_condition:
return
it not some_other_condition:
return
do_something()