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

Re: [perl #105278] Add warning for exists($a[0]) and delete($a[0])

Thread Previous | Thread Next
From:
Jesse Luehrs
Date:
July 23, 2012 20:18
Subject:
Re: [perl #105278] Add warning for exists($a[0]) and delete($a[0])
Message ID:
20120724031819.GT30375@tozt.net
On Mon, Jul 23, 2012 at 11:11:33PM -0400, Ricardo Signes wrote:
> * Jesse Luehrs <doy@tozt.net> [2012-07-03T02:16:05]
> > And patch #1 is now applied as 5e5bb7c. Leaving #2 and #3 for now until
> > we come to a consensus on this issue.
> 
> "this issue" here is "should using the deprecated exists($a[$i]) and
> delete($a[$i])" warn?
> 
> Or is it going back to the notion of removing tests, which I believe was
> rebutted, and not erroneously?
> 
> The use of exists and delete on array elements has been marked as deprecated
> since 5.12, and I believe it should be issuing a deprecation warning if we are
> ever to follow through and remove it.

"This issue" being if whether or not we are planning on actually
removing exists and delete on arrays. I think we should, but it has been
fairly contentious when brought up in the past. I agree that these
warnings need to go in if we want to remove them.

-doy

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