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:
Ricardo Signes
Date:
July 23, 2012 20:12
Subject:
Re: [perl #105278] Add warning for exists($a[0]) and delete($a[0])
Message ID:
20120724031133.GJ14892@cancer.codesimply.com
* 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.

-- 
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