|
From: | Matthew Plant |
Subject: | Re: Raw string literals in Emacs lisp. |
Date: | Fri, 25 Jul 2014 22:28:18 -0700 |
Matthew Plant writes:
> What if we assume that any string surrounded immediately by
> parenthesis is a raw string literal?
Please don't. SXEmacs and XEmacs have had rawstring literals for many
years using the syntax #r"...". It may not be the best way to do
this, but it's (Common) Lisp-y, the prefix notation is familiar from
at least one popular non-Lisp language (Python), and it's about as
short a notation as you can imagine (I don't recall why #"..." was
out, though).
Use of parens for this purpose is likely to have wide-ranging
implications, as it means that they no longer have unambiguous
semantics, but require lookahead to interpret.
[Prev in Thread] | Current Thread | [Next in Thread] |