[cdr-discuss] AEQUALIS and COMPARE

Marco Antoniotti marcoxa at cs.nyu.edu
Sat Feb 26 08:23:51 UTC 2011


On Feb 25, 2011, at 19:58 , Matthew Swank wrote:

>> AEQUALIS a b
>>  &optional recursive-p
>>  &rest keys
>>  &key &allow-other-keys
>>  → result
>> Note: Maybe it would make sense to supply a
>>  \:key parameter (defaulting to identity) as
>>  well.
> ...
>> 
>> COMPARE a b &optional
>>  recursive-p
>>  &rest keys
>>  &key &allow-other-keys →
>>  result
> 
> 
> What is the rationale for making recursive-p an optional argument instead of a
> keyword argument?  It generates style warnings and makes it clumsy to delegate
> to aequalis/compare in other functions.

Aesthetics?  It is nicer to write

(equals #((foo)) #((bar)) t)

than

(equals #((foo)) #((bar)) :recursive-p t)

What style warnings are generated and by which implementation?  I don't get any.

Cheers

Marco







> 
> Matt
> 
> 
> _______________________________________________
> cdr-discuss mailing list
> cdr-discuss at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/cdr-discuss
> 
> 

--
Marco Antoniotti






More information about the cdr-discuss mailing list