Re: goto: it's conceded
- Posted by gshingles <gshingles at gma?l.com> May 28, 2008
- 658 views
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 Gary