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

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

Thread Previous | Thread Next
David Golden
August 24, 2012 05:55
Re: fixing smartmatch just hard enough (and when, too)
Message ID:
On Fri, Aug 24, 2012 at 8:51 AM, Leon Timmermans <> 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* <>
*Take back your inbox!* →
Twitter/IRC: @xdg

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About