RE: About GOTO (was RE: fixed windows)
- Posted by Peter Willems <peter at integratedmoves.com> Aug 06, 2003
- 387 views
David Cuny wrote: > Peter Williems wrote: > > > I'm not saying that goto is evil (although every informatics > > teacher will tell you) but the availability of a goto command > > generally does more bad than good, so there is a reason why many > > languages don't implement it. > > I suspect the reasons are more pragmatic. I do agree with you that the (snipped) examples you gave do indeed illustrate that. But I still think it also has a lot to do with coding philosophy (not sure if I spelled that right I suspect that Wirth's teachings have a profound inpact on todays language developments. He has always been advocating structured programming in his languages and he did develop Pascal as a structured oponent to basic. So I'm fairly sure that in the case of Pascal the omission of goto in the language has a lot to do with his philosophy. And as he has also written several books on language design and compiler development I suspect his beliefs to be visible in several (read: a lot of) programming languages. > On the down side, neither of these solutions are as simple as a GOTO. Agreed, but none of these solutions leave room to do "spagetty" programming either BTW, I realy enjoy your insightfull replies, I'm learning new things constantly. Hans Peter Willems