develooper Front page | perl.perl5.porters | Postings from January 2012

Re: [perl #109132] sub foo(_@)

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
January 27, 2012 01:26
Subject:
Re: [perl #109132] sub foo(_@)
Message ID:
CAMoYMM8L1WTqdbOfN3ZTz969ys0Z0JjZ2dK9VN9zDQUukY4pYQ@mail.gmail.com
On 27 January 2012 04:18, Eric Brine <ikegami@adaelis.com> wrote:
> On Thu, Jan 26, 2012 at 3:29 PM, Father Chrysostomos via RT
> <perlbug-followup@perl.org> wrote:
>>
>> > I don't see why "and 0 or more arguments" is treated differently than
>> > "and optionally 0 or more arguments".
>>
>> If we allow _@, then it becomes more complicated to explain why _$ is
>> not allowed.
>
>
> Then what if _@ and _% suggested using _;@ and _;%?
>

_@ and _% sound sensible to me, so I pushed this :


commit 34daab0fa047b2849547189ae5f48b276658af01
Author: Rafael Garcia-Suarez <rgs@consttype.org>
Date:   Fri Jan 27 10:23:12 2012 +0100

    Allow prototypes (_@) and (_%)

    Those will be equivalent to (_;@) and (_;%) ; since perlsub already
    states that the semicolon is redundant before @ and % this is in
    line with the existing documentation.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About