Re: goto considered essential
- Posted by Jason Gade <jaygade at yahoo.com> Jan 21, 2006
- 503 views
Vincent wrote: > Robert Craig has expressed his opionion about the goto statement many times > in the past. > > According to him, there is almost no chance of "goto" ever being added into > official Euphoria. He and others feel it causes "spaghetti code" execution. > I am against the goto construct for the bad programming habits it taught me > in Liberty Basic. > > If you really want the goto and labels, implement them yourself in the public > domain or C back-end source code. Or use Matt's Object Oriented Euphoria > and/or > Bach. > > > Regards, > Vincent I've been thinking a bit about the next release of Euphoria. Although the major enhancement will be for cooperative multitasking, I think that it will also enable a general exception library to be built. I think the yield() feature will be very powerful for certain constructs not necessarily related to multitasking. Mainly I'm thinking of closures, I think that's the right word, routines that maintain state and can be resumed at the point where they yield. -- "The author regrets that he is unable to reconcile himself to the thoughtful point of view you have expressed. However, it must be kept in mind that being raised in different cultures and different places can result in such differences of viewpoint between individuals. The author is from planet Earth." [author unknown] j.