GNU bug report logs -
#26540
25.2; [PATCH] Add cl-set-equal to test for set equality
Previous Next
Reported by: Damien Cassou <damien <at> cassou.me>
Date: Mon, 17 Apr 2017 09:17:01 UTC
Severity: wishlist
Tags: patch
Found in version 25.2
Done: Nicolas Petton <nicolas <at> petton.fr>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Drew Adams <drew.adams <at> oracle.com> writes:
> I'm just pointing out that a function we already have, and one
> that is used more widely by users of Common Lisp, does the same
> thing - unless I'm missing something.
I agree (except that one has opposite result).
> If people think that some users might not think to use
> `set-exclusive-or' to test set equality then we could add a
> `set-equal' function. Common Lisp didn't think so, and neither
> do I, but I wouldn't oppose adding it.
At least I didn't think about using exclusive-or. Searching for
"equal" or "same elements" in the info page (info "(cl) Lists as
Sets") didn't help.
> If we do add it, I'd imagine that the implementation should be
> the same (adding `not', as you say), for clarity and consistency
> - unless other things are not equal for some reason (i.e.,
> unless there is a good reason not to use the existing
> implementation).
I updated the patch.
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
[0001-Add-cl-set-equal-to-test-for-set-equality.patch (text/x-patch, attachment)]
This bug report was last modified 8 years and 14 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.