develooper Front page | perl.perl5.porters | Postings from August 2012

Re: fixing smartmatch just hard enough (and when, too)

Thread Previous | Thread Next
From:
Michael Peters
Date:
August 22, 2012 08:03
Subject:
Re: fixing smartmatch just hard enough (and when, too)
Message ID:
5034F497.5020703@plusthree.com
On 08/22/2012 08:59 AM, David Golden wrote:

> I would prefer the Any ~~ AmbiguousScalar case to warn and fall back to
> string comparison.  If someone wants to die on ambiguity, they can make
> the warning fatal.
>
> I think this gentler approach would be more Perlish.

I agree. I would hate to have a scenario where I add some 
debugging/logging print/warn statements that just by their existence 
change valid code into fatal code.

-- 
Michael Peters
Plus Three, LP


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