[r6rs-discuss] [Formal] identifier macros with syntax-rules

From: David Van Horn <dvanhorn>
Date: Tue Nov 14 19:01:08 2006

---
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
---
Name: David Van Horn
Email: dvanhorn_at_cs.brandeis.edu
Type: Enhancement
Priority: Major
R6RS component: Macros
Version of the report: 5.91
Summary of the issue
--------------------
It should be possible to define identifier macros using only the base 
library.
Full description
----------------
The (r6rs syntax-case) library allows for identifier macros to be 
defined, however their specification is orthogonal to both non-hygienic 
macro expansion and the ability to evaluate arbitrary Scheme code at 
expansion time, thus it should be possible to define identifier macros 
in terms of syntax-rules.  This implies extending the <srpattern> 
production to include an underscore, having syntax-rules forms evaluate 
to transformers, and moving make-variable-transformer to the base library.
Received on Tue Nov 14 2006 - 14:57:49 UTC

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