[Top][All Lists]

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

Re: [PATCH] Interpret #r"..." as a raw string

From: Aurélien Aptel
Subject: Re: [PATCH] Interpret #r"..." as a raw string
Date: Tue, 2 Mar 2021 15:46:03 +0100

Hi Stefan,

On Tue, Mar 2, 2021 at 2:49 PM Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> Thanks, that's quite helpful.
> At the end you state:
>     I personally think raw strings have their use outside of regexes and
>     would be a nice addition to the Emacs Lisp language.
> I'm willing to believe it, but so far the only concrete examples I've
> seen where raw string literals could be helpful are regexps.

It's the most common use-case. The other is embedding conf files or
source files in other languages (which is the same really, except
there's no rx equivalent for those). It's pretty nice to be able to
just dump some text verbatim (especially when copy pasting it from
somewhere) with some special quotes at the start and at the end and
not have to worry about it.

> I'm clearly leaning against the addition of raw string literal (just
> like I'm leaning against the addition of multiline comments, BTW)
> because I feel the benefits are quite limited.

I understand. I see some benefits with no cons. But I'm not
maintaining Emacs so ultimately it's up to you, Eli and the rest of
the crew (thx for all those years of work btw!).


reply via email to

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