http://qs1969.pair.com?node_id=506378


in reply to Re^3: Parsing named parameters
in thread Parsing named parameters

What would be the penalty of performing the optimisation if you don't need it?

Why make something more complicated when it doesn't bring you any benefit? Some obvious disadvantages:

  1. You waste time writing more complicated code, with no benefit for your application;
  2. You make life harder for whoever has to maintain the code later (whether that’s you or someone else), again with no benefit;
  3. The optimised code, being more complicated, is more likely to have bugs;
  4. etc.