Re:If-else vs switch – Which is better?
by wglb on Monday August 03, 2009 @12:02AM
(#738577)
I have now become accustomed to using COND which I would find a way to emulate if I had to program in another language. I find too many errors in simple if statements.
Plus, the switch seems to be inviting trouble, considering Duff's Device.
Oh, and I consider performance better if i get the correct result.
Plus, the switch seems to be inviting trouble, considering Duff's Device.
Oh, and I consider performance better if i get the correct result.