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
Jesse Luehrs
July 23, 2012 20:18
Re: [perl #105278] Add warning for exists($a[0]) and delete($a[0])
Message ID:
On Mon, Jul 23, 2012 at 11:11:33PM -0400, Ricardo Signes wrote:
> * Jesse Luehrs <> [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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About