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 24, 2012 05:55
Subject:
Re: fixing smartmatch just hard enough (and when, too)
Message ID:
CAOeq1c-KoL3xKVmsofWFU8q+A+1qSnKK0np+WAgmmFmvJ8D2MQ@mail.gmail.com
On Fri, Aug 24, 2012 at 8:51 AM, Leon Timmermans <fawaka@gmail.com> wrote:

>
> I guess. Conceptually left handed matching and right handed matching
> feel like completely different, because left hand is usually about the
> $self and right handed is about the $other, to the point where I'd
> almost suggest making them separate for purposes of operator
> overloading.


I'd be fine with splitting them.  If not, then we do need LHS and I think
it should resolve before RHS for the reasons I gave in my example about an
an Error class and a length() matching comparator object.

-- David

-- 
*David Golden* <dagolden@cpan.org>
*Take back your inbox!* → http://www.bunchmail.com/
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