in reply to (crazyinsomniac: switch) Re: (4) My vacation depends on it
in thread My vacation depends on it

The scanning logic of a switch is flexible and easy for you to understand and see, but if you have long lists of options that you are processing within a loop, it will be a lot slower than dispatching on a hash lookup. If you can arrange to do it the latter way, it is generally worth doing so.

Just something to be aware of.

  • Comment on Re (tilly) 1: (crazyinsomniac: switch) Re: (4) My vacation depends on it