Re: Multidimensional arrays
- Posted by Patrick Barnes <mrtrick at gmail.com> Nov 24, 2004
- 613 views
On Wed, 24 Nov 2004 17:29:14 -0600, Kat <gertie at visionsix.com> wrote: > > But to have it built-in to the language will encourage inefficient > > programming.. IMO. > > Having it in C code in the language, should be faster than doing it Eu, > written > by a programmer inexperienced in Eu code. And the question has come up > before, many times. That is true... To do something like that efficiently though, you'd need a doubly indexed array... and it'd be slower for non-doubly indexed purposes. You know what would be truly ground-breaking, I think? A way to define the internal structure of a collection of data (like a tree, a list, a doubly indexed array, a heap, etc...) then access them using high-level, homogenous terms. It'd be fast, because it could use optimal organisation, rather that sitting everything in multiply nested arrays as we do now. Not sure where to begin though. -- MrTrick