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

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

Thread Previous | Thread Next
Jeffrey Friedl
July 24, 2001 10:39
RE: [PATCH for discussion] new feature: clamp %hash
Message ID:

Nick Ing-Simmons <> 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.


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