On Tue, Nov 29, 2005 at 04:26:09PM +0100, Leopold Toetsch wrote:
> Coke:
> >If so, why do we specify S0 here?)
> 
> Just for convenience.

I appreciate the convenience argument, but given the ease of keyed
access, $P0[0] is pretty darned convenient already.  And someday we
may want to pass things that are more than convenience.  So I'd like
the signature of exceptions to just be (P), at least for now.

Which gives me an idea for PDD03: "IGNORE".  Currently there's no way
to do the old Perl 5 thing of knowing that the caller passed more than
N arguments but you really only want N.  How about:

  exception:
    .local pmc except
    .param except
    .param $P0 :slurp :ignore    # don't bother constructing Array
    if_null $P0, always          # it's always Null

Hm.  Seems like a pretty ugly kludge for a rare case.
-- 
Chip Salzenberg <[EMAIL PROTECTED]>

Reply via email to