[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Escape syntax in docstrings
From: |
Robert Pluim |
Subject: |
Re: Escape syntax in docstrings |
Date: |
Tue, 28 Mar 2023 14:14:32 +0200 |
>>>>> On Thu, 23 Mar 2023 23:02:08 +0100, Mattias Engdegård
>>>>> <mattias.engdegard@gmail.com> said:
Mattias> (That Emacs doesn't reject undefined character escape sequences
such
Mattias> as "\y" is not only a constant source of bugs, it also makes it
Mattias> difficult for us to add new escape sequences without worrying about
Mattias> breaking some (misguided) code. Almost every other language
complain
Mattias> about this.)
How strict do you want to be? Emacsʼ own source code has some decidely
non-supported escape sequences, especially when specifying characters
using the `?\c' syntax. I guess a first step could be to add a
byte-compile warning for those analagous to
`lread--unescaped-character-literals', and then maybe expand it to
strings as well.
Robert
--