[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Interpret #r"..." as a raw string
From: |
Stefan Monnier |
Subject: |
Re: [PATCH] Interpret #r"..." as a raw string |
Date: |
Tue, 02 Mar 2021 19:27:42 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> There are 101 lines using ⟦\\\\\\\\⟧.
>
> rg '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
In the best case with raw string literals this would be brought down to:
rg '\\\\\\\\\\\\\\\\'
> textmodes/reftex-vars.el
> 564: \"\\\\\\\\begin{eqnarray}\\\\|\\\\\\\\\\\\\\\\\" works for
> eqnarrays.
And this would be:
564: "\\\\begin{eqnarray}\\|\\\\\\\\" works for eqnarrays.
While it's clearly a bit better, it's clearly no silver bullet.
> Look at that! 19 backslashes followed by a double–quote. That’s just
> stupid.
The new version has fewer backslashes, but I'm not sure it'd be few
enough to get below the threshold for "stupid".
> I think the benefits would add up pretty quickly.
I'm not convinced.
Stefan
- Re: [PATCH] Interpret #r"..." as a raw string, (continued)
Re: [PATCH] Interpret #r"..." as a raw string, Aurélien Aptel, 2021/03/02
- Re: [PATCH] Interpret #r"..." as a raw string, Stefan Monnier, 2021/03/02
- Re: [PATCH] Interpret #r"..." as a raw string, Aurélien Aptel, 2021/03/02
- Re: [PATCH] Interpret #r"..." as a raw string, Stefan Monnier, 2021/03/02
- Re: [PATCH] Interpret #r"..." as a raw string, Aurélien Aptel, 2021/03/02
- Re: [PATCH] Interpret #r"..." as a raw string, Alfred M. Szmidt, 2021/03/03
- Re: [PATCH] Interpret #r"..." as a raw string, Stefan Monnier, 2021/03/03
Re: [PATCH] Interpret #r"..." as a raw string, Daniel Brooks, 2021/03/02
Re: [PATCH] Interpret #r"..." as a raw string,
Stefan Monnier <=
Re: [PATCH] Interpret #r"..." as a raw string, Daniel Brooks, 2021/03/02
Re: [PATCH] Interpret #r"..." as a raw string, Andreas Schwab, 2021/03/03
Re: [PATCH] Interpret #r"..." as a raw string, Daniel Brooks, 2021/03/03
Re: [PATCH] Interpret #r"..." as a raw string, Andreas Schwab, 2021/03/03
Re: [PATCH] Interpret #r"..." as a raw string, Daniel Brooks, 2021/03/03
Re: [PATCH] Interpret #r"..." as a raw string, Daniel Brooks, 2021/03/03
Re: [PATCH] Interpret #r"..." as a raw string, Andreas Schwab, 2021/03/03
Re: [PATCH] Interpret #r"..." as a raw string, Daniel Brooks, 2021/03/03
Re: [PATCH] Interpret #r"..." as a raw string, Michael Albinus, 2021/03/03
Re: [PATCH] Interpret #r"..." as a raw string, Daniel Brooks, 2021/03/03