1. Re: The fate of Euphoria (Goto statement)

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

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
. .. : :: = == == = :: : .. .

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu