[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Optional arguments at the beginning

This page is part of the web mail archives of SRFI 67 from before July 7th, 2015. The new archives for SRFI 67 contain all messages, not just those from before July 7th, 2015.



The spec has:

procedure:  (=? [ compare ] [ x y ]) 
procedure:  (<? [ compare ] [ x y ]) 
procedure:  (>? [ compare ] [ x y ]) 
procedure:  (<=? [ compare ] [ x y ]) 
procedure:  (>=? [ compare ] [ x y ]) 
procedure:  (not=? [ compare ] [ x y ]) 

I dislike having the compare optional argument at the beginning: There
seems to be almost no precedent for it in Scheme libraries, and it
means that the parameter positions change their meaning depending on
the total number of arguments, which I find confusing.

Is there a rationale for having it at the beginning rather than at the
end?  Alternatively, one could always require it to be present, which
I personally would prefer.

(Great SRFI in most other respects, BTW!)

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla