Re: multidim. containers
[email protected] (Christian Soeller)
| Newsgroups | perl.perl6.language.data,perl.perl6.internals |
|---|---|
| Organization | University of Auckland |
| Message-ID | <[email protected]> |
Dan Sugalski wrote: > If you want efficiency, n-dimensional arrays really need to be a concrete > data type all of their own. That way one big block of memory can be > allocated and, if it's a typed array, properly sized. I wholeheartedly agree ;) > > That doesn't mean that n-dimensional arrays won't be just sugar over the > standard list-o-list structure to start, but they won't have to stay that way. That seems to be a possible route. Get multi-dim syntax for arrays but don't assume that they are list-of-list(refs). That way the implementation can be tuned as required. Christian