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

Re: [perl #114178] di/ds/ig exempt from warnings in void context

Thread Previous | Thread Next
From:
Paul Johnson
Date:
July 18, 2012 07:31
Subject:
Re: [perl #114178] di/ds/ig exempt from warnings in void context
Message ID:
20120718143105.GD10635@pjcj.net
On Wed, Jul 18, 2012 at 02:45:43PM +0100, Nicholas Clark wrote:
> On Wed, Jul 18, 2012 at 03:35:25PM +0200, Paul Johnson wrote:
> 
> > As far as removing it is concerned, I presume that no one is writing new
> > code in this way, and probably hasn't for a few years.  So the removal
> > is a trade-off between a slight standardisation and simplification and
> > breaking backwards compatibility with some perl4 era programs.
> > 
> > I would side with keeping backwards compatibility.
> 
> One could fudge it (by increasing complexity) by making it warn in any
> source file using a perl 5 construction. Probably the simplest is *just*
> to set a flag if C<use> is used.

I'm not convinced it warrants any increase in complexity, especially for
something that would still be a heuristic.

-- 
Paul Johnson - paul@pjcj.net
http://www.pjcj.net

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