On Tue, Aug 08, 2000 at 01:27:48PM -0400, Andy Dougherty wrote:
> It strikes me that this is very fragile and limited (unless I
> misunderstand, which is quite possible).  For one thing, it appears to
> only be useful if your subroutine uses each argument exactly once.  If
> you need to use any of the arguments more than once, you can't use this
> notation.  For example, you might want to check $_[3] to be sure
> $pi/$_[3] didn't end up dividing by zero.  I don't see how to to that
> with the __ version.
> 
> Further, if you find you need to revise the check function in a way
> that changes the order in which the arguments are used, but you don't
> want to replace all the calls to $check elsewhere in your code, I
> don't see how you can do that with the __ version.

Yep, both very valid points.  Thus somewhere buried within the thread
of discussion following this RFC was proposed positional and/or named
currying with _1, _2, _3 and/or _foo, _bar, _baz.

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to