From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#37659: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= acm.org> Date: Sat, 12 Oct 2019 12:47:13 +0200 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="104252"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37659@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 12 12:48:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1iJEwW-000Qwi-PU for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Oct 2019 12:48:13 +0200 Original-Received: from localhost ([::1]:60170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJEwV-0005Zb-Jq for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Oct 2019 06:48:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38547) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJEwO-0005ZQ-9Q for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2019 06:48:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJEwN-00020s-2Q for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2019 06:48:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51947) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJEwM-0001zT-Mj for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2019 06:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iJEwM-0005wy-HI for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2019 06:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Oct 2019 10:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37659 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 37659-submit@debbugs.gnu.org id=B37659.157087725322840 (code B ref 37659); Sat, 12 Oct 2019 10:48:02 +0000 Original-Received: (at 37659) by debbugs.gnu.org; 12 Oct 2019 10:47:33 +0000 Original-Received: from localhost ([127.0.0.1]:60768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJEvs-0005wI-4T for submit@debbugs.gnu.org; Sat, 12 Oct 2019 06:47:33 -0400 Original-Received: from mail231c50.megamailservers.eu ([91.136.10.241]:37754 helo=mail37c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJEvn-0005w6-Pc for 37659@debbugs.gnu.org; Sat, 12 Oct 2019 06:47:30 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1570877235; bh=7XYXBanHxb825ALeKiLjuq7knzCM7ZLVjfal3m/sPFY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=gx6m9fDWskcf8Z2SqrpiaIWHrya3Y/nOxO5YCjHpbNoM0E+Urzmwm9zdU8bEBaWsw igd4QA73lQ3ZHg9VHhU9D760f+uUym/doBC4lH2qAzfc6jDhhPk3pjQMG3TlORGce8 i681TrchIkhA/fUM2m3BuWUF8X8BMCnBqQgyPFUM= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.1.65] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail37c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x9CAlDFE011348; Sat, 12 Oct 2019 10:47:15 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0208.5DA1AF33.003C, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=eN1tc0h1 c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=5KLPUuaC_9wA:10 a=M51BFTxLslgA:10 a=M0d5irrpWGhhgbURTnIA:9 a=QEXdDO2ut3YA:10 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169040 Archived-At: 12 okt. 2019 kl. 01.07 skrev Paul Eggert : >=20 > 1. Instead of the symbol 'unordered-or' (which is remarkably hard to = read), I suggest using the ASCII letter 'V'. This ASCIIfies the Unicode = symbol U+2228 LOGICAL OR (=E2=88=A8). If you prefer, you could make the = Unicode symbol an alias for 'V', or use lower-case ASCII 'v', or = whatever. The point is that '(unordered-or A B)' is too hard to read = with all those 'or's in there. Definitely agree on the imperfections of 'unordered-or', and while I'd = be the first to welcome more use of Unicode symbols, I'm not sure V (or = v, or =E2=88=A8) are very descriptive --- even if an alert reader = intuits the rebus of 'V' (perhaps via \vee in TeX), there is no hint of = the difference from 'or' or '|'. Other suggestions: 'or*' --- follows the Lisp tradition of appending a star to get a = variant and informs the reader that it's like 'or' but with a twist. The = downside is that it might suggest a Kleene closure somehow. 'either', 'one-of', 'choose', 'pick-one', 'alternative', 'alt' --- very = readable although the relationship to 'or' isn't quite clear. Perhaps = they suggest a looser sense of ordering? 'unseq-or' --- a bit more readable and phonetically sharper than = 'unordered-or', but it suggest a relation to 'seq'. 'nonstrict-or' --- abuses the familiar programming notion of strictness? 'or-ooo' --- will mostly make sense to the comp-arch crowd. > Is there a reason this uses (cons (list "[^z-a]") t) rather than = '(("[^z-a]") . t) ? I realize neighboring code does something similar, = but it's not clear to me why it's important to construct new objects = here instead of using literals. Yes, there is a comment right above explaining that the returned value = may be mutated (at least one use of mapcan). I tried doing it the other = way, but neither was clearly better than the other (in performance or = style), so I've let it stand for now. Nothing I feel strongly about = either way.