On Feb 16, 2009, at 3:56 PM, Stephen C. Gilardi wrote:

>
> On Feb 16, 2009, at 2:23 PM, Rich Hickey wrote:
>
>> New docs here:
>>
>> http://clojure.org/lazy
>
>
> In the html doc:
>
>       rest... "returns a possibly empty seq, never nil"
>
> then later
>
>       "never returns nil
>               - currently not enforced on 3rd party seqs"
>
> In "(doc rest)"
>
>       "may return nil"
>
> What's the cleaned up version of all that? Is it worth guaranteeing  
> that rest never returns nil or should "never returns nil" be removed  
> from the html docs?
>

I've fixed the doc string. I'm not going to add code for 3rd party  
seqs, enforcing this contract is up to them. If they derive from ASeq  
and define next, ASeq will do the right thing for them.

Rich



--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to