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

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

Thread Previous | Thread Next
From:
Damian Conway
Date:
August 23, 2012 18:21
Subject:
Re: fixing smartmatch just hard enough (and when, too)
Message ID:
CAATtAp4KrVqLPehFM5aebmpG3fJaMaDx+DRXXT1v5ovevrWrhg@mail.gmail.com
Rick noted:

> I only wanted to butt in here and note that Perl6::Junction, the junction
> implementation we'd be likely to steal from, only implements comparison across
> junctions.  We don't end up with a number of fancy other features that have
> been discussed like returning junctions magically from subroutine calls or
> doing any(1,2,3)+2, etc.

Yes, indeed. As I have pointed out in other posts, I certainly don't
expect us to incorporate more than (in Leon's evocative phraseology)
"half-arsed" junctions. ;-)

I particularly don't expect the magical distributive subroutine dispatch
semantics of Perl 6. Though I *do* think basic arithmetic ought to be
supported.

In any case, assuming Perl6::Junctions is in fact borged into the core
(which I sincerely hope it *will* be, to make up for dumping array and
hash smartmatching), then you can certainly expect patches from me to
supply at least the missing arithmetic operators..the addition of which
shouldn't affect performance in any way, I hope.

Damian

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