Living with smart match breakage
Yitzchak Scott-Thoennes
sthoenna at gmail.com
Fri Jun 14 01:51:26 BST 2013
On Thu, Jun 13, 2013 at 5:02 PM, Mark Fowler <mark at twoshortplanks.com> wrote:
> On Thursday, June 13, 2013, Yitzchak Scott-Thoennes wrote:
>> I think it may be easier to list the cases that could be expected to
>> *continue* to work in the future;
>
> It's my understanding that smart match will continue to work *as* *is* in
> all future versions of Perl if you enable experimental smart match
> behaviour in your code. The point in the declaration is to say 'I want you
> to try to have the behaviour that existed when this was an experimental
> feature, not whatever the behaviour is now' - i.e. to tell whatever version
> of Perl your code is running on to always use smart match as it worked in
> 5.18.
I'm pretty out of touch, but I think that describes Jesse's plan for
backward compatibility of opcodes; however, this bit made me think
that wasn't the goal in this instance:
> After a lot of talk about making ~~ pluggable across different scopes, I think it's a non-starter. It's just not the kind of thing we can plug this way, because of the way in which we expect it to be used. If we expect users to pass a test from their code to some other code, they need to know how that code will use it. It needs to be the same everywhere.
More information about the london.pm
mailing list