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:
- You waste time writing more complicated code, with no benefit for your application;
- You make life harder for whoever has to maintain the code later (whether that’s you or someone else), again with no benefit;
- The optimised code, being more complicated, is more likely to have bugs;