[plt-scheme] R6RS and read syntax

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon May 12 19:25:13 EDT 2008

At Mon, 12 May 2008 19:24:41 +0100, Filipe Cabecinhas wrote:
> Continuing my R6RS vs. MzScheme woes...
> Is there a way to import read-syntax into an R6RS program? It doesn't  
> seem to me that the standard covers it so, unless there's something in  
> mzscheme for that, I must continue to use (regexp "...") instead of  
> #rx"...". And in '() it's worse. regexp-match* will give me an  
> immutable list, but '(...) will give me a mutable one (and cars and  
> cdrs will break on one of those).
> Is there a way to overcome the read-syntax obstacle in mzscheme?

There's no way to import reader syntax using the `r6rs' reader.

The creation of mutable lists by '(...) isn't actually a reader issue;
it's the work of `quote' as exported by `rnrs'.

I'm puzzled, though, that you're trying to use R6RS library syntax but
you seem willing to use many PLT-specific features. Why not just write
in `#lang scheme' syntax instead of `#!r6rs'?


Posted on the users mailing list.