develooper Front page | perl.perl6.language | Postings from February 2005

Re: Valid hash keys?

Thread Previous | Thread Next
Thomas Sandlaß
February 27, 2005 14:57
Re: Valid hash keys?
Message ID:
Alex Burr wrote:

> [..] Actually, it would be useful sometimes
> to be able to give a hash an explicit canonicalizer:
> my %msdos_files is canonicalized_by lc;
> my %fractions is canonicalized_by gcd;

Shouldn't that be handled by container subclasses of Hash?
Like PersitentScalar or SparseArray?

TSa (Thomas Sandlaß)

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