Re: voting on GOTO
- Posted by Derek Parnell <ddparnell at bigpo??.com> Jun 05, 2008
- 781 views
Euler German wrote: > Just to add that there are times when I really miss a DO CASE case > this ... case that ... other[wise] ... END CASE construct. But I can > wait. :) This construct has been implemented in v4.0 and I'm doing some extensive testing with it. It works very well and makes code look a lot cleaner. eg. switch upper(SOMEVAL) do case "ME": case "MYSELF": case "I": foo() exit case "YOU": case "THEM": bar() -- fall thru case "HE": case "SHE": qwerty() exit case else: default() end switch -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell