Re: New switch/case idea

new topic     » goto parent     » topic index » view thread      » older message » newer message
kinz said...
switch X  -- pure switch 
  case a ?1 
  case b ?2 
  else   ?3 
end switch 
cascade X -- instead of switch with fallthrou 
  stage a ?1 
  stage b ?2 break 
  else    ?3 
end cascade 

I saw Niagara in my dream yesterday ...

Here is another one using your example, which is very clear and doesn't need a new keyword like: switch or select or choose or ... smile

goto case X 
  case a ?1 
  case b ?2 
  else   ?3 
end case 

- Fernando

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu