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:
Ricardo Signes
Date:
October 19, 2015 21:43
Subject:
Re: YA smartmatch proposal [ was: Re: smartmatch needs your eyes]
Message ID:
20151019214329.GA14302@cancer.codesimply.com
* D Perrett via perl5-porters <perl5-porters@perl.org> [2015-10-19T16:00:57]
> Therefore, aren't real users going to be least surprised by something
> that does...
> 
>     $x == $y || $x eq $y

> This would mean $number_three ~~ "3\n" is true when I forget to chomp
> just like $number_three == "3\n". The only case I can see where that's
> really wrong is "inferior" ~~ "informative" and 0 ~~ ''; and I wonder
> if ~~ could special-case inf strings and empty strings.

Maybe you've left out some key point that would prevent "1rhodeisland" ~~
"1mississippi" from being true, or, worse, "rhodeisland" ~~ "mississippi".

I don't think this is a workable proposal.

-- 
rjbs

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