Dan Sugalski wrote:
> 
> I'm thinking instead of proposing that lists become first-class data
> elements themselves, lazily evaluated. That way we don't flatten until
> someone actually references the list, which makes returns cheaper too. In
> this case we'd push two array markers on the stack, so if the outer code was:
> 
>    ($foo, $bar) = whatever();
> 
> and whatever() returned two arrays of a thousand elements each, we wouldn't
> bother pushing 1998 worthless elements on the stack...
> 

Which leads to my other question - have you seen my draft "Queen of Hearts"
RFC?

Karl

Reply via email to