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: Richard Stallman
Subject: Re: [PATCH] Interpret #r"..." as a raw string
Date: Mon, 01 Mar 2021 00:26:14 -0500

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Is #r"..." convenient enough?

  > If I have a string with lots of double quotes, I still have to escape
  > every duoble quote.

  > Maybe better to change to #r"..."r#, or even #r<<<<"...">>>>r# (user can
  > insert any number of < and > but they must be paired to avoid the
  > escape.)

I suggest writing the code to move backwards over various possible syntaxes
to determine which ones work well for backward parsing.
Then choose the syntax based on that.

I've done that in the past.

-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





reply via email to

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