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: Zhu Zihao
Subject: Re: [PATCH] Interpret #r"..." as a raw string
Date: Sun, 28 Feb 2021 14:22:25 +0800
User-agent: mu4e 1.4.15; emacs 27.1

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'm with raw string reader syntax because I often want my program be
self-documenting, so I write a lot in docstring.

BTW, Naoya, have you test raw string syntax in propertized string?
e.g. #(#r"foo bar" ....)

-- 
Retrieve my PGP public key:

  gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F

Zihao

Attachment: signature.asc
Description: PGP signature


reply via email to

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