From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: master ea93326: Add `union' and `intersection' to rx (bug#37849) Date: Wed, 11 Dec 2019 12:17:25 +0100 Message-ID: References: <20191210213842.5388.30110@vcs0.savannah.gnu.org> <20191210213843.EB6A520A23@vcs0.savannah.gnu.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="13425"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 11 14:40:32 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 1if2EA-0003NB-0k for ged-emacs-devel@m.gmane.org; Wed, 11 Dec 2019 14:40:30 +0100 Original-Received: from localhost ([::1]:42606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if2E8-0006gx-RN for ged-emacs-devel@m.gmane.org; Wed, 11 Dec 2019 08:40:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39610) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if2E0-0006ez-6Z for emacs-devel@gnu.org; Wed, 11 Dec 2019 08:40:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1if2Dy-00040b-9j for emacs-devel@gnu.org; Wed, 11 Dec 2019 08:40:19 -0500 Original-Received: from mail1466c50.megamailservers.eu ([91.136.14.66]:59296 helo=mail268c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1if2Dw-0003v7-8z for emacs-devel@gnu.org; Wed, 11 Dec 2019 08:40:18 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1576063049; bh=YETPZAh2H4aq86B28rJslaLtsGxQTxFBpFq0PKfQT6U=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=FZ6KiKcQE156VT10LQcX1SHTcdU+qBIwD2s/qKLECwxjy4AlVkvxebMHeIDE21zYG Ermk2TlLoGrRsAjfL3I6QwJUvi4/JMP9q37/sk3Ie75fHEN4fhVs0mx9lwpylfXFir 9rTuj+ouVqD4PLZNtf9xWsVPhyIUmrJ1Sg599Rqw= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail268c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id xBBBHQnZ031150; Wed, 11 Dec 2019 11:17:28 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0206.5DF0D049.0034, 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=J53UEzvS c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=iRZporoAAAAA:8 a=4-qzZcZA2ePmE32r-ucA:9 a=CjuIK1q_8ugA:10 a=NOBgFS-JBQ2l-kSd6-zu:22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 91.136.14.66 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:243299 Archived-At: 10 dec. 2019 kl. 22.52 skrev Stefan Monnier : > Why not (re)use `or` instead of `union`? IOW make it an optimization? It probably could, but having to explain the restrictions to the user = felt a bit messy, so I went with a neatly closed collection of set = operations (union, intersection and complement). Still, some concessions = had to be made: operations on character classes are limited, and 'not' = allows some types of arguments that cannot be used in set operations at = all. For 'or' to work as argument to 'not' and 'intersection', its arguments = would have to be restricted in similar ways. I'll see what can be done.