I think a function should generally return the same types for different input. A seq and a Java array are two very different things even though Clojure often lets us pass both to the same functions. It seemed like a small fix, but I guess not everyone agrees.
Like a wrote, I think this is small bug. I was just playing around with the function at the repl, and the behavior surprised me, so I thought I would mention it on the mailing list. user=> (bases java.util.List) #<Class[] [Ljava.lang.Class;@315b0333> user=> (bases java.util.ArrayList) (java.util.AbstractList java.util.List java.util.RandomAccess java.lang.Cloneable java.io.Serializable) Cheers, Alf On Mon, Aug 15, 2011 at 08:03, Meikel Brandmeyer (kotarak) <m...@kotka.de> wrote: > Hi, > > Am Mittwoch, 10. August 2011 22:15:48 UTC+2 schrieb Alf: >> >> When calling bases on an inteface it returns an array. Should this not >> be a seq? > > Would that make a difference? You can pass an array where you'd expect a > sequence. > > Sincerely > Meikel > > -- > 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