On Fri, 9 Jul 2010 13:57:05 -0400
Stuart Halloway <stuart.hallo...
> Once you walk down the path of "What should (max) return?" I think you won't want a default behavior.
> 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 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