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

Re: smartmatch needs your eyes

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
September 10, 2015 15:58
Subject:
Re: smartmatch needs your eyes
Message ID:
20150910165802.301ec3bb@shy.leonerd.org.uk
On Thu, 10 Sep 2015 17:42:24 +0200
"H.Merijn Brand" <h.m.brand@xs4all.nl> wrote:

>     $x ~~ 42        -->     $x == 42        ???
>     $x ~~ "foo"     -->     $x eq "foo"     ???

I expect not.

   my $x = 1;

   $x ~~ "1.0"

does what? It's this "try to guess from many possible types of match"
that is deemed the core problem of toosmartforitsowngood-match in the
first place.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk
http://www.leonerd.org.uk/  |  https://metacpan.org/author/PEVANS

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