On Sat, 01 Feb 2003 06:40, Garrett Goebel wrote:
> Or for the extremely thick:
> GOOD: Separate syntax for indexed vs. named lookups
> BAD: Same syntax with >= 2 contextual meanings
Or, another way to look at it;
GOOD: flexible, re-usable code that doesn't care if you change the key
type
From: Piers Cawley [mailto:[EMAIL PROTECTED]]
> Garrett Goebel <[EMAIL PROTECTED]> writes:
> >
> > $idx_of_foo = $queue['foo']; # named lookup
> > $nth_foo= $queue[600]; # ordered lookup
> >
> > One is SvPOK the other SvIOK...
> >
> > Can't we handle both and still have the ordered lookup be