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

RE: [PATCH] core-only patch for clamp/readonly hashes

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
October 31, 2001 01:06
Subject:
RE: [PATCH] core-only patch for clamp/readonly hashes
Message ID:
20011031090620.660.3@bactrian.elixent.com
Brent Dax <brentdax@cpan.org> writes:
>Jeffrey Friedl:
># One important concept is that if a key doesn't exist, exists() should
># return false. It may be allowed, but that doesn't mean it exists().
># Hopefully, everyone can agree with this.
>
>Yeah, but with one suggestion: C<exists> currently returns the empty
>string on false.  Maybe we can have it return something else that's
>false--0 or undef--if the key is allowed but doesn't currently exist.

I like that
   exists = 1 - yes its there
   exists = 0 - not there but could be
   exists = undef - not there and meaning not defined as not allowed.

--
Nick Ing-Simmons
http://www.ni-s.u-net.com/



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