Re:The death of if/else cascades, a lightweight alternative
by DrJokepu on Sunday December 06, 2009 @01:48PM
(#979946)
I've said "potentially expensive". Surely you must agree that while most of the time CPU cycles are indeed cheap in some applications (e.g. embedded systems or performance-critical loops) performance counts.
How is this any higher level than a switch statement? The syntax is slightly different but how exactly it hides complexity with abstraction?
How is this any higher level than a switch statement? The syntax is slightly different but how exactly it hides complexity with abstraction?