http://qs321.pair.com?node_id=872063


in reply to Does perl6 have a native linked-list data type?

> For instance, CONS cells can be implemented in perl5 by using two-element arrays, but that's not very efficient.

Hmm, like demonstrated in HOP?

But - out of curiosity - could you please elaborate "not very efficient"? Did you benchmark it? Or do you mean memory consumption?

When brainstorming, possible alternatives come into mind to realize a second slot in perl5 (like dualvars, tieing, blessing, glob-slots,...).

Cheers Rolf

PS: I'm well aware of the pros of CONS... ;-)

  • Comment on Re: Does perl6 have a native linked-list data type?