[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Docstring hack

From: Lynn Winebarger
Subject: Re: Docstring hack
Date: Sat, 30 Jul 2022 08:50:19 -0400

On Sat, Jul 30, 2022, 8:25 AM Po Lu <luangruo@yahoo.com> wrote:
Lynn Winebarger <owinebar@gmail.com> writes:
> 4) Make a special read syntax for literal docstrings, e.g. #", and do away with the weird context-sensitive semantics of ordinary string literals altogether.
> Also, the test in read_literal_string should probably be for "will_dump_p" rather than the purify flag, since it's the dumping that prompts the deferral of docstring
> loading, not the identification of constants.
> Any preferences?

None in particular, except that option 4 is unacceptable as it is not
compatible with older code, and is completely different from all other
Lisp implementations.

Not compatible in what sense? 
I'm not that familiar with lisp implementations - isn't Emacs's treatment of a leading escaped literal newline already completely different?  Is there a typical use of #" as a reader macro?  It's"undefined" according to https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node191.html


reply via email to

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