On Fri, 9 Jul 2010 13:57:05 -0400 Stuart Halloway <stuart.hallo...@gmail.com> wrote:
> Once you walk down the path of "What should (max) return?" I think you won't > want a default behavior. > > Stu > > P.S. Agreed that (max []) is a bad example. Given that max only works on numbers, then why doesn't (max []) throw the same exception as (max [] [])? Or, for that matter, (max \a) throw the same exception as (max \a \b \c)? If max worked on any comparable (which is what I expected), then (max A) always returning A makes sense, even if A isn't comparable. But that behavior when max is defined as only working on numbers sure seems like a bug. <mike -- Mike Meyer <m...@mired.org> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org -- 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