Re: goto: it's conceded

new topic     » goto parent     » topic index » view thread      » older message » newer message

ken mortenson wrote:
> 
> > One word (or maybe two):
> > 
> > GOSUB
> 
> Well, that's terse.  Let me add a few more.  Back in the day, I thought I
> could never live without ON X GOTO, as well as ON X GOSUB.  I have matured
> quite a bit since then.  The idea of using any of these four today is
> physically loathesome to me.  Not to offend, but for a HLL to include these
> would make it a toy language not suitable for serious development. YMMV.

Yes, I wasn't being serious. Your excellent treatise on the evils of spaghetti
code took me back to the days when I wrote a rather large drawing program in a
version of BASIC on my CP/M computer (Microbee 256TC). No mouse.

I encountered all of the problems you mentioned using GOTO, so I gradually
started using GOSUB thinking that might alleviate some of those shortcomings
since you didn't need to know which line to GOTO back to. That's when I first
learned what a stack overflow was smile

Gary

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu