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

Re: pounding the smartmatch drum

Thread Previous | Thread Next
Aristotle Pagaltzis
September 8, 2016 09:06
Re: pounding the smartmatch drum
Message ID:
* Zefram <> [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.)

Aristotle Pagaltzis // <>

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