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

Re: fixing smartmatch just hard enough (and when, too)

Thread Previous | Thread Next
From:
David Golden
Date:
August 22, 2012 08:09
Subject:
Re: fixing smartmatch just hard enough (and when, too)
Message ID:
CAOeq1c-Tp_FdU2XatgSK6uLuEJvzguG3irwf44qF9hQ1ou-u-Q@mail.gmail.com
On Wed, Aug 22, 2012 at 11:06 AM, David Golden <xdaveg@gmail.com> wrote:

> On Wed, Aug 22, 2012 at 10:58 AM, Jesse Luehrs <doy@tozt.net> wrote:
>
>> I agree - I'm curious to see what the actual use cases for this table
>> element are, since it's the one part of this proposal that I'm still
>> kind of questionable about.
>>
>
> I assume it's for junctions:
>
>   when ( any(@a) ~~ $b ) { ... }
>
>
Except, of course, I mean this:

    when { any(@a) ~~ $b ) {...}

Or this:

    given ( any(@a) ) {
        when ($b) { ... }
        when ($c) { ... }
    }

 -- David

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