Re: New switch/case idea

new topic     » goto parent     » topic index » view thread      » older message » newer message
jemima said...
jeremy said...
Fernando said...
X = 1 
condition = 1 
switch X do 
   case 1 then 
      if condition then break end if 
      X = 2 
end switch 
? X 

If that is valid, what will be showed ?

That will print 2.

You have clearly all gone stark raving bonkers...

What happened to the concept of READABLE code???

Nothing. Does that mean that we shouldn't explore edge cases, and consider fully the consequences of syntax decisions? This is an important part of language design. I'm not sure what your point is...

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu