Re: New switch/case idea
- Posted by jemima Apr 08, 2009
- 1625 views
mattlewis said...
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
Ah, I see. What you are all saying is "this is precisely why we must NOT implement it this way". I misunderstood. You didn't make that clear.