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

Re: YA smartmatch proposal [ was: Re: smartmatch needs your eyes]

Thread Previous | Thread Next
From:
Victor ADAM
Date:
October 19, 2015 21:39
Subject:
Re: YA smartmatch proposal [ was: Re: smartmatch needs your eyes]
Message ID:
CAATTT4U0QXcjPtyRJo2bG=Og72Vk=eiaCVcNR_L82yvojyA9MA@mail.gmail.com
> Therefore, aren't real users going to be least surprised by something
> that does...
>
>     $x == $y || $x eq $y

I think everyone would be surprised if "orange" ~~ "apple" returns true.

perl -e 'my $x = q(orange); my $y = q(apple); print(($x == $y || $x eq
$y) ? "Confusing" : "DWIM")'

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