Re: Possible feature for new Euphoria-version

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Fri,  9 Jan 2004 12:23:43 +0000, Tommy Carlier
<tommy.carlier at pandora.be> wrote:

>Options for seq[seq]:
>
>1. s[{a, b, c}] = s[a][b][c] -- recursive indices
>2. s[{a, b, c}] = { s[a], s[b], s[c] } -- direct indices
>3. s["abc"] = s[VALUES][ find("abc", s[KEYS]) ] -- associative list
>
>I think that 2 and 3 are so easy and fast to do in Euphoria, 
There is (nearly) the same copy on write overhead for 2 as for 1.

I do agree that anyone using (large) associative arrays and wondering
why it is a tad slow ought not to give up their day job.

Pete
PS As I don't personally see that 1 necessarily wins over 2, and 3
would be darn handy (despite being unlikely to be specially fast if
hand-coded in optimised assembly), I have to abstain on this one.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu