who said they are?

On Thu, Mar 11, 2010 at 11:36 AM, Brian Hurt <bhur...@gmail.com> wrote:
>
>
> On Thu, Mar 11, 2010 at 2:33 PM, Kevin Downey <redc...@gmail.com> wrote:
>>
>> seq is not seq?
>>
>
> No- it's just that empty lists are still seqs (seq? returns true).
>
> The only thing that is wrong here is the doc comment for empty?- it makes
> sense (to me at least) that empty lists are seqs, just like non-empty lists
> are.  Which means that (seq? x) and (not (empty? x)) are not equivalent bits
> of code.
>
>>
>> On Thu, Mar 11, 2010 at 11:19 AM, Brian Hurt <bhur...@gmail.com> wrote:
>> > So the doc comment on empty? reads, in part:
>> >
>> >> Please use the idiom (seq x) rather than (not (empty? x))
>> >
>> > A heads up to people: these two code sequences are *not* identical in
>> > behavior:
>> >
>> > user=> (seq? '())
>> > true
>> > user=> (not (empty? '()))
>> > false
>> > user=>
>> >
>> > Brian
>> >
>> > --
>> > 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
>>
>>
>>
>> --
>> And what is good, Phaedrus,
>> And what is not good—
>> Need we ask anyone to tell us these things?
>>
>> --
>> 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 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



-- 
And what is good, Phaedrus,
And what is not good—
Need we ask anyone to tell us these things?

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

Reply via email to