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

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

Thread Previous | Thread Next
Damian Conway
August 23, 2012 18:21
Re: fixing smartmatch just hard enough (and when, too)
Message ID:
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

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.


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