Re: [code-review] Tie::Array::Bounded

Xavier Noria <[email protected]> Fri, 21 Nov 2003 08:39:25 +0100
Newsgroups gmane.comp.lang.perl.code-review-ladder
Message-ID <[email protected]>
On divendres, nov 21, 2003, at 08:07 Europe/Madrid, Peter Scott wrote:

> I've created my first module intended for CPAN, at 
> http://www.psdt.com/Tie-Array-Bounded-0.01.tar.gz pending review from 
> folks here.  It allows the user to specify upper (and, for 
> completeness' sake, lower) bounds on array indices, and throws 
> exceptions on violations.

The name is confusig to me. From that name I would expect to get tied 
arrays whose _values_ have to be in a certain range. That 
interpretation might come from math maybe, where "bounded" in "bounded 
map" qualifies the image, not the domain. And arrays are kind of a map.

Anyway, bounded values is what I'd expect from the name. 
Tie::Array::BoundedIndex or something like that would be better in my 
opinion.

-- fxn