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:
Zefram
Date:
October 19, 2015 21:03
Subject:
Re: YA smartmatch proposal [ was: Re: smartmatch needs your eyes]
Message ID:
20151019210310.GT9229@fysh.org
D Perrett via perl5-porters wrote:
>The utility of smartmatch/given/when is that it is supposed to value
>DWIM over nitpicking. It is the "I don't want to have to think about
>it" operator, which values recall over precision.

No.  It's meant to value conciseness, but to be a usable language
feature it needs to have a precisely defined (and useful) meaning.
If the programmer doesn't think about the type of matching ey wants,
ey's going to end up with bug-ridden crap.

>                                                  That is, it should
>err on the side of true over false.

That sounds really dumb.

-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