If you pair else
with for
, it could be confusing. I don't think the keyword else
was a great choice for this syntax, but if you pair else
with if
which contains break
, you can see it actually makes sense. else
is barely useful if there is no preceding if
statement and I believe this is why the syntax designer chose the keyword.
Let me demonstrate it in human language.
for
each person in a group of suspects if
anyone is the criminal
break
the investigation. else
report failure.