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

RE: [PATCH for discussion] new feature: clamp %hash

Thread Previous | Thread Next
From:
Jeffrey Friedl
Date:
July 24, 2001 10:39
Subject:
RE: [PATCH for discussion] new feature: clamp %hash
Message ID:
200107241738.KAA10942@ventrue.corp.yahoo.com

Nick Ing-Simmons <nick@ing-simmons.net> wrote:
|> readonly \%hash;     # clamped

I reiterate that I believe that this would be a mistake.

If you want readonlyness for a hash to mean that its values are also
readonly (which, Nick, you made abundantly clear that you do), then
how can it be anything but a misnomer and trap that
   readonly \%hash;
not do that?

As I and Scott have said, and to which you agreed, clamping and
readonlyness are different animals. Shouldn't the way to invoke them,
therefore, also be different? That they may be internally dealt with in
similar manners is not something the user needs to be confused by.

	Jeffrey

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