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?