smorrison@xxxxxxxxxxxxxxxxxxx wrote:
What do you think ITER and LEAVE
are, except a fancy GOTO without an explicit TAG? I felt the same way
about CABxx (Case and Branch) when that was the popular new op-code!
I've seen this "GOTO by another name" argument a few times in this
thread. Doesn't it logically follow then that loops and other branch
statements (SELECT-WHEN, IF) are also bad?
FWIW, I also dislike CABxx, but that has more to do with my preference
for subprocedures over subroutines. I also try to avoid ITER and LEAVE
where possible, but I think that they can make code more readable in the
"loop completion is the exception" cases that James mentioned. In those
cases I find that putting all the logic in the loop's logical expression
tends to make the expression overly complex.
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.