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

Re: smartmatch needs your eyes

Thread Previous | Thread Next
Paul "LeoNerd" Evans
September 21, 2015 11:59
Re: smartmatch needs your eyes
Message ID:
There's no harm in being restrictive in the *current* semantics of ~~,
leaving any case of literal string or number on RHS as compiletime
failure. That still leaves the doorway open to adding semantics later
on, if we manage to grow a new mechanism that makes it more sensible
than we currently have.

I'm verymuch in favour of the restricted set of "these things are
valid, all else is an error". It's far easier to add new cases later on
that used to be errors, than to redefine existing ones. So lets be very
conservative in what we add today.

Paul "LeoNerd" Evans  |

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