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

Re: smartmatch needs your eyes

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
September 24, 2015 13:16
Subject:
Re: smartmatch needs your eyes
Message ID:
20150924131602.GA1862@cancer.codesimply.com
* Zefram <zefram@fysh.org> [2015-09-24T08:06:44]
> So my tentative conclusion is that smartmatch in Perl 6 is too complicated
> to use comfortably.  It can sometimes be used correctly, but the effort
> of doing so exceeds the convenience gained by it.

This has been my tentative conclusion for some time, as well.  Another
difficulty, I think, is that there are places in its dispatch that seem filled
in with arbitrary-feeling behavior "because they had to do /something/", rather
than because it is the obvious thing that should be done.  Just like we had in
Perl 5, ish.

> Which sounds rather like the situation we got into in Perl 5.  It seems
> that the Perl 6 folks could benefit from some of our wisdom.  One cannot
> truly appreciate smartmatch until one has seen it in its original Perl
> 5 context.

Ha! :)

-- 
rjbs

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