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

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

Thread Previous | Thread Next
Mark-Jason Dominus
March 8, 2001 23:24
Re: [ID 19990808.001] [DOC PATCH] FETCH triggered on exists()
Message ID:

> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About