Re: voting on GOTO
- Posted by Mario Steele <eumario at trila?e.net> Jun 05, 2008
- 800 views
Chris Bensler wrote: > > Jeremy Cowgar wrote: > > > > ken mortenson wrote: > > > > > > Labels are not equivalent to the start of a structure. While can only be > > > the first instruction or entered from a preceding instruction. Labels add > > > cost because they can be ENTERED FROM ANYWHERE in the current scope. > > > > > > > This totally depends on how you code. The few times I've used goto in C, the > > number of entry points was exactly one. Sure, get sloppy and enter from a > > thousand > > points, whoa! Look out, that's code that is probably easier to analyze the > > problem > > from scratch and rewrite w/o even becoming corrupted with the twisted mess > > that > > was originally created. > > > > -- > > Jeremy Cowgar > > <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a> > > Seriously, this sounds as though goto should be implemented *just in case* > someone > might find a good use for it at some point in the future. What are the cases > where it would actually be practical to use goto in Euphoria? Is it seriously > worth increasing the language footprint for the sake of a blue moon? > > I've been using Euphoria for just about 10 years now and have never even had > the desire for a goto statement, let alone a need for it. And I have > experience > with it, none bad either. > > I do not deny that it can be useful, but for the rare occasion when it is, is > it really that unsurmountable to get around it, even if it does mean messier > code and some lateral thinking? > > Chris Bensler > Code is Alchemy Heh, Chris, I remember a time, when you believed Euphoria's Memory Management libraries we no where near what it needed to be. So you wrote your own memory routines. Were they absolutely nesscary? allocate_string() = allocate(length(string)+1) poke(mem,string,length(string)) You created the library, was it absolutely nesscary, just on the off chance that someone else would find it useful? That it, as you said, "might be implemented" ? Mario Steele http://enchantedblade.trilake.net Attaining World Dominiation, one byte at a time...