On Friday, February 13, 2015 at 12:05:24 AM UTC-5, Justin Smith wrote:
>
> it's an infinite lazy sequence with itself as a dependency. The first n 
> elements see a value of the initial non-lazy prefix. The alternative would 
> be a compilation error.


Nope. Every component of the sequence should be a cell with a first value 
and a delay of the rest, or in the chunked case a cell with 32 values and a 
delay of the rest. The delay may or may not have already been forced. But 
under no circumstances should it see a sequence endpoint that never 
actually exists.

And if something goes wrong it should be a runtime error, specifically, if 
computing element N requires going farther than element N-1 the computation 
of some delay should end up trying to force the same delay, which would 
hang ... at runtime. Similar to @(promise).

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to