From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Philippe Schnoebelen Newsgroups: gmane.emacs.devel Subject: Re: 7 logical-xor implementations in source tree Date: Sun, 28 Jul 2019 09:09:01 +0200 Message-ID: <0edfffbb-6f5a-a6b2-334a-9000e8f2eb3e@gmail.com> References: <87tvbd9a8p.fsf@oremacs.com> <87pnm14u95.fsf@tcd.ie> <87sgqvoz5c.fsf@tcd.ie> <87d0hz2e11.fsf@tcd.ie> <5B633129-B795-4BFA-AE81-FE9FD0A24CE9@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="74253"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 28 09:09:24 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrdJ5-000JEJ-RR for ged-emacs-devel@m.gmane.org; Sun, 28 Jul 2019 09:09:23 +0200 Original-Received: from localhost ([::1]:43856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrdJ4-0002Dx-OT for ged-emacs-devel@m.gmane.org; Sun, 28 Jul 2019 03:09:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46940) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrdIo-0002AO-3E for emacs-devel@gnu.org; Sun, 28 Jul 2019 03:09:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrdIn-00008S-3C for emacs-devel@gnu.org; Sun, 28 Jul 2019 03:09:06 -0400 Original-Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:38641) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrdIm-00007x-Ot for emacs-devel@gnu.org; Sun, 28 Jul 2019 03:09:05 -0400 Original-Received: by mail-wm1-x32a.google.com with SMTP id s15so29450326wmj.3 for ; Sun, 28 Jul 2019 00:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=dea5ivF9z3DkpN/gwsQ3UM5wJIrAM5Vu/rspuMVOafU=; b=tH6wSNPkF+m/2YCkzgqZzT7uSxplKuNkORdnYESYmtrqi3mZCv6D+J667tscEGohdJ k6ASUbjc15xrOeNLxDvDbLo7QOMa7Cf2NwlS5iu6oVpK0QUckDgu6OeWQrmVtVAt4gF9 CbpjyO61v4isOLTQHUufM/sNCgSriG3rEegB9nB4wE/iYJ0z4DX6RNTG+TdRvqisSW8u YAIGr9z2l9HYAAJohC030zdvpwcVeStd5QXydQ5cPEUNbneA1bFIVKdCTUgLRRR548w8 C2fXBVvum1iCoLJVYyPa6190+7iGN18ZhQ/tlri0JaNnIWHj0Qg3nfGXQ+CTHAKAagte 1nng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=dea5ivF9z3DkpN/gwsQ3UM5wJIrAM5Vu/rspuMVOafU=; b=rpBwhJhz+kWrJ49tjQ8bloBprAqt8PCrdyoaxZTUWvtOUCeC+yl+1Q5NFZz+mOJJVX qwskoko5PPkY9pIfp4NANCVNAs0In75NAu77H2lwhdpm2g5C5QJA6D8bJMoMtOKwebwE r8JqvfFQ0j/bX09yE9LgvyFH+/hI3t+MilqYf2XylmdPEcB7HDeLs2CDGidWBn3biMAM sdvt+PtPzAKBK6GWc8vVpOf4x+2t1gnJRaR1ZpdOSrvc4r/zE4FqloMuxI+j8Zt7tOqf 0WKY4CW/75tdtLrqzAf723APhdgr/YacFS88HnzTrIuDaPuARQic1sWujxgaCrzaFuO2 1EJA== X-Gm-Message-State: APjAAAWcEkiwD8A6t3h6Wt3e2Dp2UyxS3d7uqNGYXNVOzV1+CHx4fDGv 3xbYwvChDWoaBwAnvodPFo1SHFbV X-Google-Smtp-Source: APXvYqw+8lkFSknkcMGvLV0Vd2UegJRcTAYv7qY8qSoQcFma1CnuXWINcVJZO7Rraj2X2rhxxZejjg== X-Received: by 2002:a1c:2d58:: with SMTP id t85mr86293997wmt.61.1564297743244; Sun, 28 Jul 2019 00:09:03 -0700 (PDT) Original-Received: from Philippes-MacBook-Pro-2.local ([2a01:e34:ec01:2db0:bd34:9297:611d:3bc4]) by smtp.gmail.com with ESMTPSA id r15sm61498853wrj.68.2019.07.28.00.09.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jul 2019 00:09:02 -0700 (PDT) In-Reply-To: <5B633129-B795-4BFA-AE81-FE9FD0A24CE9@acm.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238962 Archived-At: On 2019/07/25 14:07, Mattias Engdegård wrote: > 25 juli 2019 kl. 01.44 skrev Basil L. Contovounesios : > > > bool-equal, bool-equiv, bool=, bool-eq are all fine as far as I'm concerned. `xnor' and `nxor', not so much. > Racket has `boolean=?', but presumably it only copes with #t/#f. > I'll be using `equiv' as placeholder below for brevity. I like the name `iff'  for this function. >>> - There's no use for it, currently. If we can't find any use for it, >>> I'm not sure it deserves to be in subr.el. I use the function a lot in ert tests, like in       (should (iff (null somelist) (zerop (length somelist)))) --phs