On Fri, 9 Jul 2010 13:57:05 -0400
Stuart Halloway <[email protected]> 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 <[email protected]> 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 [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en