in reply to Re: What's the construction?
in thread What's the construction?
This is kind of a nicer way to deal with parameters since you can provide them in any order...
While I agree named parameters are nice and, indeed, recommended in some cases by such sources as TheDamian's Perl Best Practices (PBP), this particular approach to named parameters is questionable (in the extreme IMO) because it allows one to arbitrarily add an element to the function argument list (or, in some cases, to drop one) without anyone being the wiser. This sort of 'niceness' has 'accident waiting to happen' and '3AM debug session' written all over it. If there is any valid reason for this particular nicety (and it's hard to imagine one), it should, as pointed out below by Anonymonk, be thoroughly documented – and then should probably be eliminated at the first code review.
|
|---|