[Info-vax] BASIC (and Horizon)
Dave Froble
davef at tsoft-inc.com
Wed Jan 31 22:57:47 EST 2024
On 1/31/2024 8:26 PM, Dan Cross wrote:
> In article <upejl0$1nkl5$1 at dont-email.me>,
> Dave Froble <davef at tsoft-inc.com> wrote:
>> I've seen code that did all kinds of confusing things, just avoid a GoTo branch.
>> My question is, why? If the need is a simple and rather easy to understand
>> branch, why get complex,
>
> `goto` by itself is a sharp tool; sometimes incredibly useful,
> but dangerous if misused. Our industry is littered with example
> after example of `goto` misused. For instance,
> https://dwheeler.com/essays/apple-goto-fail.html
Cars are dangerous, should we go back to horses?
Horses are dangerous, should we go back to walking?
Walking is dangerous ...
Flying is dangerous ...
Boats are dangerous ...
Crossing the street is dangerous. But we're taught to look before stepping in
front of the bus.
GoTo can be dangerous ...
Learn good programming habits ...
>
> That said, `goto` obviously _does_ have a place when used
> judiciously.
Yes, that ...
--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486
More information about the Info-vax
mailing list