Re:The death of if/else cascades, a lightweight alternative
by cma on Sunday December 06, 2009 @12:14PM
(#979812)
The second version is slower too. Here's what I use for e.g. a state machine, which follows "don't repeat yourself" a little better than the first example:
[ Parent
| on HN ]
Re:The death of if/else cascades, a lightweight alternative
by eru on Sunday December 06, 2009 @01:42PM
(#979939)
Is the second version slower because the string won't get intern-ed?