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

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

Thread Previous | Thread Next
From:
Xiao Yafeng
Date:
August 17, 2012 06:32
Subject:
Re: fixing smartmatch just hard enough (and when, too)
Message ID:
CABPUXgAz11UWaaqB4upt7oGL-7nYhjKnFus63p55W4vNMCscLQ@mail.gmail.com
On Fri, Aug 17, 2012 at 5:58 AM, Ricardo Signes
<perl.p5p@rjbs.manxome.org>wrote:

>
> ## Core Junctions
>
> Well, that's why we have junctions.  Remember those?  Of course you do,
> they're
> fantastic.
>
>   if ($x ~~ any( qw( John Paul Ringo ) )) {
>     tune_strings;
>   } else {
>     tap_drumps;
>   }
>
> We already have very nice junctions in Perl6::Junction.  We bring that
> into the
> core (with a new name) and we get nice useful ways to put tests together.
>  We
> also get them anywhere else we want them.  For me, that's "all over the
> place."
> I bet it will be for lots of other people, too.
>
>
> --
> rjbs
>

As I know, there are many perl programmers who use *List::MoreUtils
*any/all/none/
instead of Perl6::Junction. * *

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