> This is why flatten's behavior was considered a bug. In Clojure, an
> empty sequence is equivalent to nil, not to '(nil).

This does not comport with the various differences enumerated @
http://clojure.org/lisps
Perhaps they need to be changed.  RH care to weigh in on this?

which says:
"() is not the same as nil"

and this one:
"In Clojure nil means 'nothing'. It signifies the absence of a value,
of any type, and is not specific to lists or sequences."

and probably this one too:
"Empty collections are distinct from nil. Clojure does not equate nil
and '()."

and this one as well:
"...There is no such thing as an empty sequence. Either there is a
sequence (with elements) or there isn't (nil)..."

add this to the pile:
"...The Clojure return values differ in not returning empty
collections, but rather a sequence or not...."


On Dec 16, 11:28 am, "J. McConnell" <jdo...@gmail.com> wrote:
> On Tue, Dec 16, 2008 at 11:23 AM, Randall R Schulz <rsch...@sonic.net> wrote:
>
>
>
> > It is also the case that empty lists are self-evaluating:
>
> > user=> ''()
> > (quote ())
>
> > user=> '()
> > ()
>
> > user=> ()
> > ()
>
> Ahhh, good to know. Thanks!
>
> - J.
--~--~---------~--~----~------------~-------~--~----~
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