develooper Front page | perl.perl5.porters | Postings from September 2015

Re: smartmatch needs your eyes

Thread Previous | Thread Next
From:
David Golden
Date:
September 11, 2015 11:09
Subject:
Re: smartmatch needs your eyes
Message ID:
CAOeq1c8L7+XG+r9HAM3UxAH=Sx4vcjPDme1bi=A0z79pcT4pEw@mail.gmail.com
On Thu, Sep 10, 2015 at 11:54 AM, Zefram <zefram@fysh.org> wrote:

> Smartmatch is also fundamentally a predicate operation, and by the
> same logic should also canonicalise its return value.  Likewise, if it
> doesn't already, it should always call a sub or overloaded method in
> scalar context.
>

+1


-- 
David Golden <xdg@xdg.me> Twitter/IRC: @xdg

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