Re: New switch/case idea
- Posted by Mike777 Apr 07, 2009
- 1696 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???
I think you are ignoring the fact that these examples are merely proof of concept. There are many circumstances where code will appear to be less than perfectly efficient, but will be perfectly appropriate because it self-documents a process which mimics the real world. Substitute "IRS_audits_me" for condition and then see if you don't want a placeholder in your code as you design, and debug, a complete response.