* 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