[r6rs-discuss] Comparison procedures' number of arguments
leppie
xacc.ide at gmail.com
Tue Oct 21 08:18:18 EDT 2008
Hi
I dont understand all this 'confusion'.
Example: monotonically increasing
(< 1) should be #f or error, there is no increase, hence no comparison.
Logically, how can you ask:
- What is the difference? (<)
- What is the difference between a frog? (< frog)
Neither of those make any sense. Logically you cannot compare less than 2
objects.
Like Ken mentioned earlier about the principle of least surprise. Why even
bother, when the meaning of a comparison operator changes depending on
arity?
A function/procedure should be simple and do one thing, it's function, not
functions.
My 2 cents
Cheers
leppie
--
http://codeplex.com/IronScheme
http://xacc.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.r6rs.org/pipermail/r6rs-discuss/attachments/20081021/76a12f67/attachment.htm
More information about the r6rs-discuss
mailing list