Re: New switch/case idea
- Posted by mattlewis (admin) Apr 07, 2009
- 1634 views
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