all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattiase@acm.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: master ea93326: Add `union' and `intersection' to rx (bug#37849)
Date: Wed, 11 Dec 2019 12:17:25 +0100	[thread overview]
Message-ID: <A7D4DC03-5CC3-4DEC-9328-4C96BFB97DD2@acm.org> (raw)
In-Reply-To: <jwvpngvvoma.fsf-monnier+emacs@gnu.org>

10 dec. 2019 kl. 22.52 skrev Stefan Monnier <monnier@iro.umontreal.ca>:

> 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.




  reply	other threads:[~2019-12-11 11:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20191210213842.5388.30110@vcs0.savannah.gnu.org>
     [not found] ` <20191210213843.EB6A520A23@vcs0.savannah.gnu.org>
2019-12-10 21:52   ` master ea93326: Add `union' and `intersection' to rx (bug#37849) Stefan Monnier
2019-12-11 11:17     ` Mattias Engdegård [this message]
2019-12-11 15:10       ` Stefan Monnier
2019-12-12 22:48         ` Mattias Engdegård
2019-12-13 13:55           ` Stefan Monnier
2019-12-13 17:03             ` Mattias Engdegård
2019-12-13 17:13               ` Stefan Monnier
2019-12-13 17:43                 ` Mattias Engdegård
2019-12-13 23:03                   ` Stefan Monnier
2019-12-15 11:08                     ` Mattias Engdegård
2019-12-15 14:53                       ` Stefan Monnier
2019-12-15 19:23                         ` Mattias Engdegård
2019-12-15 20:04                           ` Stefan Monnier
2019-12-15 20:42                             ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A7D4DC03-5CC3-4DEC-9328-4C96BFB97DD2@acm.org \
    --to=mattiase@acm.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.