From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: master ea93326: Add `union' and `intersection' to rx (bug#37849) Date: Wed, 11 Dec 2019 10:10:33 -0500 Message-ID: References: <20191210213842.5388.30110@vcs0.savannah.gnu.org> <20191210213843.EB6A520A23@vcs0.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="143026"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Mattias =?windows-1252?Q?Engdeg=E5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 11 16:11:06 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 1if3dk-000aw3-GG for ged-emacs-devel@m.gmane.org; Wed, 11 Dec 2019 16:11:00 +0100 Original-Received: from localhost ([::1]:43952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if3di-0006Cq-Q5 for ged-emacs-devel@m.gmane.org; Wed, 11 Dec 2019 10:10:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48775) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if3dU-00067k-Sh for emacs-devel@gnu.org; Wed, 11 Dec 2019 10:10:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1if3dT-000732-2c for emacs-devel@gnu.org; Wed, 11 Dec 2019 10:10:44 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:15225) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1if3dS-00070p-Sa for emacs-devel@gnu.org; Wed, 11 Dec 2019 10:10:43 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B168982BF6; Wed, 11 Dec 2019 10:10:40 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 68E6581258; Wed, 11 Dec 2019 10:10:38 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1576077038; bh=p+ZXOw6fGHgAAVvaz1ZNQULaQZJBUB/qs8njLJg4uzo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=DyPSkdMEryLAk0+ilOZB6vhGjHnEUZSg021I9gA8rXpWpcAB7nHVvrW6tTICYekBL TMcOAirP+aIchHtV9YcAhOnwurEIuhFJS6xr6EBlKO0DhS3pR0Xr1SzvyNYxZBsmcu tVLYCC974ucxy4ZdP+GZ79GVs7qyTC/+JbbJ3IaI65E1QexzepohF210IjVJ181uyJ YPylbrFObZvXWPtNlkG6CLcQsctYqstVcM0gPpn3KFsxMtQMvzojLInoy0IoqU67kq DTraH0dqC6+pJhDy9iIMYeO7SJsayaAfFtWWJ/OhGrLTGVHeS0jPWeXMy6OewhxcJH ZkCmy2mHXPz7g== Original-Received: from pastel (unknown [45.72.154.226]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B245F121342; Wed, 11 Dec 2019 10:10:37 -0500 (EST) In-Reply-To: ("Mattias \=\?windows-1252\?Q\?Engdeg\=E5rd\=22's\?\= message of "Wed, 11 Dec 2019 12:17:25 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 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:243301 Archived-At: >> 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). But as a user now I wonder what's the difference between `or` and `union` and also why there has to be a difference. Stefan