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

Re: pounding the smartmatch drum

Thread Previous | Thread Next
From:
Sawyer X
Date:
September 6, 2016 15:20
Subject:
Re: pounding the smartmatch drum
Message ID:
3fad226c-2d3f-5dc4-2d9d-caa337f516cd@gmail.com

On 09/05/2016 03:18 PM, Ricardo Signes wrote:
> Is 5.26.0 the release that we get a final decision on smartmatch?

I think it's about time, yes.

> Tony Cook's
> branch was looking pretty good last time I played with it, and I was especially
> enthused about the ~~x and x~~ overloads, which seemed almost indispensible in
> hindsight.
>
> Now that I'm writing code targeting the latest perl, I feel like I could
> actually use ~~ if it got fixed.  So I'm curious whether there's any resolve
> now to (A) fix it (B) kill it (C) mark it off as a dangerous area never to be
> discussed again.

We should opt for fixing it by reducing it's behavior to the most
consistent and expected one.

RHS overloading makes sense, but double overloading might just be that
extra little bit that throws this into "Ah rats!" territory, so I opt
for not having it.

Does anyone object to RHS overloading? Does anyone object to removing
LHS overloading?

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