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

Re: smartmatch needs your eyes

Thread Previous | Thread Next
Ricardo Signes
September 24, 2015 13:16
Re: smartmatch needs your eyes
Message ID:
* Zefram <> [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! :)


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