emacs-devel
[Top][All Lists]
Advanced

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

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


From: Daniel Brooks
Subject: Re: [PATCH] Interpret #r"..." as a raw string
Date: Wed, 03 Mar 2021 02:02:47 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Andreas Schwab <schwab@linux-m68k.org> writes:

> On Mär 03 2021, Daniel Brooks wrote:
>
>> That is absolutely true. We could then halve it again by using a raw
>> string literal.
>
> The question remains whether the complexity increase is warranted just
> for a few occurrences of such cases.

I included that example because it is egregious, and I was astounded
when I saw it. The real benefit comes from the far more frequent cases
where people find themselves using «\\» or «\\\\». And if or when we
implement a syntax that allows double-quotes in a raw string literal, it
will save people even more time, because there are yet more tens of
thousands of cases of «\"» in the code.

db48x



reply via email to

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