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

Re: pounding the smartmatch drum

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
September 8, 2016 09:06
Subject:
Re: pounding the smartmatch drum
Message ID:
20160908090600.GA33786@plasmasturm.org
* Zefram <zefram@fysh.org> [2016-09-08 05:12]:
> Father Chrysostomos wrote:
> > Maybe that is our way out: to make a distinction between 'when' and
> > '~~' overloading.
>
> No, that would be dreadful. The same issues about ~~ lhs overloading
> would apply to when overloading.

“That would be dreadful” is a correct but useless objection here.

Any way of making given($@) work is going to be dreadful. And so would
be breaking given($@).

Therefore the choice before us is to pick among dreadful options.

I would rather go with the dreadfulness of having a bad feature in the
language (and then try to shoo people away from it) than that of making
people rewrite their code, especially without direct benefits for them.

(This is not least a matter of relevance too. Every time someone has to
rewrite their old Perl to new Perl, we are implicitly also making them
consider rewriting their old Perl to Python or Ruby or Go or whatever.)

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

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