develooper Front page | perl.perl5.porters | Postings from November 2017

Re: Revisiting smart match

Thread Previous | Thread Next
From:
Dan Book
Date:
November 28, 2017 21:50
Subject:
Re: Revisiting smart match
Message ID:
CABMkAVU_o+xAf6j9tmTdO5Tw4qnRMq9PyCTkqtTH+mo1B4wQvg@mail.gmail.com
On Tue, Nov 28, 2017 at 1:58 PM, Zefram <zefram@fysh.org> wrote:
>
>
> More possibilities: "with" for smartmatching (do_stuff() with Number), and
> "because" for condition (do_stuff() because $_ == 3).  These don't seem
> stylistically related to each other, but they're individually appealing.
> Pairing "with" with "where" could work.
>

Just a note, not sure if it would be a problem here, but 'with' is heavily
used as a function for composing roles in Moo(se) and Role::Tiny.

-Dan

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