On Tue, Nov 1, 2011 at 7:33 PM, David Nolen <dnolen.li...@gmail.com> wrote: > (isa? (type '(:foo :bar)) clojure.lang.IPersistentList) => true > (isa? (type ()) clojure.lang.IPersistentList) => true > (isa? (type (list)) clojure.lang.IPersistentList) => true >
(type ()) ;=> clojure.lang.PersistentList$EmptyList EmptyList is an inner class in PesistentList, and is not directly derived from PersistentList. Though, as David shows, both PersistentList and PersistentList$EmptyList implement the interface IPersistentList. > 2011/11/1 Sebastián Galkin <paras...@gmail.com> >> >> Can somebody explain the rationale behind this?: >> (isa? (type '(:foo :bar)) clojure.lang.PersistentList) => true >> (isa? (type ()) clojure.lang.PersistentList) => false >> (isa? (type (list)) clojure.lang.PersistentList) => false >> >> >> -- >> 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 -- 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