|
DrFranken wrote:
I like James' explanation here but I stay more on the Practical side. If
I copy a chunk of code or move a chunk of code and there are "GoTo"
instructions I must carefully analyze the tags and determine if they
also must be moved or if new ones must be created. Failure to do so can
break program logic very badly. With a loop that utilizes Leave in
addition to a normal exit 'at the bottom' it's very easily portable with
essentially no risk to primary program flow.
Translation: I am lazy. :-)
Then Jon Paris wrote:
my little MQC - you are practical - not lazy.
I hate goto with a passion. Have been burnt by it so many times.
I've never been burnt by Leave or Iter - both are obvious, clear, unambiguous. Purists can scream all they want, they work.
****** Often code written to avoid them is far worse. ******
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.