Re: The fate of Euphoria (Goto statement)
- Posted by CoJaBo <cojabo at suscom.net> Nov 08, 2004
- 441 views
Dave Probert wrote: > > Please: NO Goto. There is really no sensible need for it I can see. > > A Case statement is a much cleaner option than a bunch of > if-then-elsif-then-end statments. > > They are not the same thing either. > eg. > if a=b then > -- do something > elsif c=d then > -- do something else > end if > > and > > switch a of > case b > -- do something > break > case c > -- summat else > break > end switch That would be usefull for huge if statements, but I doubt Rob would go to that much trouble if he won't fix problems that don't have a way of doing. > > The IF statement can have differing variables to check against, whereas the > CASE checks > the equality of 'a' against 'b' or 'c'. > > Yes, the IF route can do exactly the same thing, but IMO is more difficult to > read > in the long run. > > Just my 2 pence view. > > Any chance we can kill this thread soon - it's getting to be boring seeing > 'The Fate > of Euphoria' as the main topic listed?? > > . .. : :: = == == = :: : .. . > Server-Side DB driven web sites, > Software Development > and part-time games developer > > contact dave_p at purpletiger dot com > . .. : :: = == == = :: : .. . >