[Info-vax] BASIC (and Horizon)
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Thu Feb 1 08:24:46 EST 2024
On 2024-01-31, Dave Froble <davef at tsoft-inc.com> wrote:
> 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?
No, but we introduced safety measures based on experience.
> Horses are dangerous, should we go back to walking?
No, but we introduced safety measures based on experience.
> Walking is dangerous ...
We introduced safety measures based on experience (depending on
the type of walking you are doing).
>
> Flying is dangerous ...
We introduced safety measures based on experience.
> Boats are dangerous ...
We introduced safety measures based on experience.
>
> GoTo can be dangerous ...
> Learn good programming habits ...
>
We introduced safer alternatives based on experience.
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
More information about the Info-vax
mailing list