Re: New switch/case idea
- Posted by bill Apr 03, 2009
- 1797 views
Reading the comments it seems to me that using a fall-through C-type switch is going away from well-structured code. I have mostly programmed in Pascal-type languages (Ada, PL/SQL etc) where sturctures like this do not exist.
It is hard to see how something like Duff's Device is needed in a high-level language. (It is also difficult to see value in a GOTO statement.)
Being able to read my code 6 months later is more important to me than raw speed or extremely succint code.
Obviously not everyone agrees.