emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master ea93326: Add `union' and `intersection' to rx (bug#37849)


From: Stefan Monnier
Subject: Re: master ea93326: Add `union' and `intersection' to rx (bug#37849)
Date: Sun, 15 Dec 2019 09:53:09 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>>> Something like (longest-or STRING...) has been proposed, but was not well
>>> received. A solution is still sought (preferably one that doesn't involve
>>> rewriting the regexp engine).
>> There's posix-string-match and friends,
> A bit overkill just for matching a set of constant strings, don't you think?

I think there's a lot of implicit assumptions here.
Yes, there are cases where you may want the "longest match" rule and
where `posix-string-match` can be too costly, but the ones I can think
of seem to be fairly contrived.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]