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

Re: pounding the smartmatch drum

Thread Previous | Thread Next
From:
Zefram
Date:
September 8, 2016 03:11
Subject:
Re: pounding the smartmatch drum
Message ID:
20160908031130.GR7097@fysh.org
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.  The language would also be less
comprehensible by virtue of having these two slightly different matching
facilities.  Given our problem of an overcomplex language feature,
splitting it so that we have two overcomplex language features isn't a
step forward.

-zefram

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