develooper Front page | perl.perl5.porters | Postings from March 2001

Re: [ID 19990808.001] [DOC PATCH] FETCH triggered on exists()

Thread Previous | Thread Next
From:
Mark-Jason Dominus
Date:
March 8, 2001 23:24
Subject:
Re: [ID 19990808.001] [DOC PATCH] FETCH triggered on exists()
Message ID:
20010309072409.7132.qmail@plover.com

> The patch below solves this issue.

I respectfully disagree.  I think this is a bug, not a feature.  

At least, it is not normal for Perl to treat 'undef' in this special
way; every other place where Perl expects a boolean value, undefined
is taken to mean false.  And I cannot remember that last time this
came up anybody advanced any reason why the existing behavior was
desirable.  If the author of the EXISTS method wanted to call FETCH
and return that value, they would be free to do so.

I think the correct approach is to fix it, or at least to leave it as
an undocumented oddity that might be fixed in the future.  Documenting
it requires that it remain forever.


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