Re: goto considered essential
- Posted by Rad <radhx at rediffmail.com> Jan 22, 2006
- 527 views
C Bouzy wrote: > > Tom, > > If you were to do a search you will come across numerous discussions regarding > goto. Robert is not going to add goto, and in my opinion it does very little > to help the language. > > ----If you continue to do what you have always done, > you will get what you have always gotten.---- If we are talking about "bad programming habits" as main deterrent for goto, then I would say that no programming language can have any bad habits. It is the programmer who can. Any programming language provides various resources for the programmer to build his/her logic. It is really up to the programmer to use the bad or good logic using these resources. It is possible to write a program with worst logic which doesn't have a single goto as well as a best program which makes use of goto’s at essential points. To pick up these essential points is the programmer’s job. In end, goto’s won’t hurt from the programming language perspective, but can hurt from programmer’s viewpoint, if not used properly. Eu should implement goto if possible and allow the programmer to take a call on it. Regards, Rad.