[Top][All Lists]

[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:11:40 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Daniel Brooks <db48x@db48x.net> writes:

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

Also, I think it's pretty funny that you suggest we should be using
Bash's raw strings because they are useful, and simultaneously that it
would not be useful for Emacs to have raw strings.

They would be useful for the same things, and complement each other very


reply via email to

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