At 12:14 PM 8/12/00 -0400, Bryan C. Warnock wrote:
>On Fri, 11 Aug 2000, David L. Nicol wrote:
> > Dan Sugalski wrote:
> >
> > > Strong typing and sparse arrays are orthogonal--no reason we
> shouldn't use
> > > them if someone does:
> > >
> > > $foo[time]
> > >
> > > or something of the sort. (People like huge arrays with few scalars in
> > > them too... :)
> > >
> > > Dan
> >
> > And for the inexperinced, arrays that are more than half undef would
> > transparently spring into existence as sparse
>
>Sounds more and more like we're creating a pseudo-array. (The natural
>complement to a pseudo-hash. :-)
Heh. It's as real an array as a hash with a fixed set of keys. That some
(or most) of the array elements don't exist is a detail of implementation. :)
Pseudo-hashes were a clever hack, and quite useful, but they exposed too
much of their internal representation. I'd like to avoid that if possible.
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk
- Re: PDL-P: Re: Hooks for array notation (was Re: Ramblin... Dan Sugalski
- Re: Hooks for array notation (was Re: Ramblings on "... Jeremy Howard
- Re: Hooks for array notation (was Re: Ramblings on "... Dan Sugalski
- Re: PDL-P: Re: Hooks for array notation (was Re: Ramblin... Karl Glazebrook
- Re: PDL-P: Re: Hooks for array notation (was Re: Ramblin... Dan Sugalski
- Re: PDL-P: Re: Hooks for array notation (was Re: Ramblin... Karl Glazebrook
- Re: PDL-P: Re: Hooks for array notation (was Re: Ramblin... Dan Sugalski
- Re: PDL-P: Re: Hooks for array notation (was Re:Rambling... Karl Glazebrook
- sorted sparse containers (was Re: PDL-P: Re: Hooks for a... David L. Nicol
- Re: sorted sparse containers (was Re: PDL-P: Re: Hooks f... Bryan C . Warnock
- Re: Ramblings on "base class" for SV etc. Dan Sugalski
- Re: Ramblings on "base class" for SV etc. Dan Sugalski
- vector and matrix calculations in core? (was: Re: Rambli... Bart Lateur
- Re: vector and matrix calculations in core? (was: Re: Ra... Dan Sugalski
- Re: vector and matrix calculations in core? (was: Re: Ra... Bart Lateur
- Re: vector and matrix calculations in core? (was: Re: Ra... Nick Ing-Simmons
- Re: Ramblings on "base class" for SV etc. Bryan C . Warnock
- Re: Ramblings on "base class" for SV etc. Dan Sugalski
- Method call optimization. Nick Ing-Simmons
- Re: Method call optimization. Chaim Frenkel
- Re: Method call optimization. Dan Sugalski
