emacs-devel
[Top][All Lists]
Advanced

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

Re: Ugly regexps


From: Eli Zaretskii
Subject: Re: Ugly regexps
Date: Wed, 03 Mar 2021 21:21:15 +0200

> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Wed, 3 Mar 2021 12:46:47 -0600
> Cc: emacs-devel@gnu.org
> 
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 
> >> Why would someone find rx unpalatable?
> >
> > Maybe just because of habit, but I think the main downside of `rx` is
> > that it's very verbose, which ends up hiding the "text".  For example in
> >
> >     (rx "(def" (or "macro" "un" "subst")))
> >
> > I find the `or` to get a bit in the way of my visual cortex recognizing
> > the "defmacro" pattern above.
> 
> It is also just another thing to learn.

And ERE isn't?



reply via email to

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