Roderick W. Failing III wrote:
> 3. It visually enforces there is a branch in logic.
I beg to disagree: think predicates. Modern processors seem to
incorporate more and more predicated instructions, and that is exactly
what the one-line statement conveys: execute the next "instruction" if
the predicate is true. A classical branch would not be involved.
In any case, we are talking about a very high level language, so I don't
think such considerations should enter. It is really a matter of style.
I find:
IF(x>10) EXIT
*much* easier to read then
IF(x>10) THEN
EXIT
END IF
and note that here again there is no branch involved at the IF level,
since the EXIT is the conditional branch.
Also, I strongly favor the inclusion of predicated operands in future
versions of Fortran (like the C ? operator), though J3 is yet to agree
on what this would look like...
Best,
Aleksandar
|