[Info-vax] BASIC (and Horizon)

Dan Cross cross at spitfire.i.gajendra.net
Thu Feb 1 08:04:13 EST 2024


In article <3c16a3a0f6100e01b49cf3de3d3411f051b23cab.camel at munted.eu>,
Single Stage to Orbit  <alex.buell at munted.eu> wrote:
>On Wed, 2024-01-31 at 22:57 -0500, Dave Froble wrote:
>> 
>> GoTo can be dangerous ...
>> Learn good programming habits ...
>
>Linux uses goto in the kernel a lot. Should I throw it in the bin?

I see the point has gone over multiple people's heads, which
probably means I did a poor job explaining.  Like I said, `goto`
*can* be useful.  Does that mean we should use it in lieu of
structued constructs like loops, when available?  No.

It's silly to deny that `goto` has been abused, leading to lots
of very poor code.  This is and was well-known.  Rising to the
defense of `goto` without acknowledging its faults is similarly
silly.

	- Dan C.




More information about the Info-vax mailing list