[r6rs-discuss] [Formal] should allow quoting non-letters in identifiers

From: Per Bothner <per>
Date: Fri Feb 2 01:14:27 2007

---
This message is a formal comment which was submitted to formal-comment_at_r6rs.org, following the requirements described at: http://www.r6rs.org/process.html
---
Submitter: Per Bothner <per_at_bothner.com>
Type of issue: Enhancement
Priority: Minor
Component: Lexical syntax
Version of the report: 5.92
Summary: allow escaping non-constituent characters in identifiers
Common Lisp and many Scheme implementations provide a way
to escape certain characters to force them to be viewed as
constituents of identifiers (and hence symbols).
The draft does allow <inline hex escape> to serve this need,
but such hex escapes are not very readable or user-friendly.
Traditionally, one or both of these have been used:
|123|
\123
We may not want to reserve | for this purpose, but \ is already
in use for escapes, and it is easy to extend it.  I suggest:
<initial> --> <constituent> | <special initial>
   | <inline escape>
<inline escape> -->
   | <inline hex escape>
   | \<character name>;
   | \<any character whose category is none of Lu, Ll, Lt, Lm, or Lo>
-- 
	--Per Bothner
per_at_bothner.com   http://per.bothner.com/
Received on Wed Jan 31 2007 - 15:09:18 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC