in reply to Re: How A Function Becomes Higher Order
in thread How A Function Becomes Higher Order
With regards to extensibility and named parameters, the advantage is clear when you consider optional parameters using the positional approach. Imagine your function starts out accepting 3 parameters. You then add an optional parameter which you stick on the end. Now if you want to add a 5th parameter you need to change the ordering of the parameters which will break backwards compatability. The issue gets even more complicated if you have more than one optional parameter.
If this doesn't make my position clear, let me know and I will provide a concrete example using Tie::SortHash and Tie::Hash::Sorted.
Cheers - L~R
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How A Function Becomes Higher Order
by jdporter (Paladin) on Sep 16, 2005 at 18:51 UTC | |
by adrianh (Chancellor) on Sep 22, 2005 at 08:56 UTC | |
by blazar (Canon) on Sep 19, 2005 at 14:08 UTC |