[Top][All Lists]

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

[bug #31680] R6RS string literal intraline whitespace removal

From: Mike Gran
Subject: [bug #31680] R6RS string literal intraline whitespace removal
Date: Thu, 18 Nov 2010 15:05:13 +0000
User-agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

Follow-up Comment #1, bug #31680 (project guile):

Yeah it is true that this isn't implemented and should be.

Ludo, Andy, I did in fact write an implementation of this in r6rs-strings
tree, but, I never committed it to master.

The commit was cff6adf899dbc0336c7c017d52504f8138c89b3d and the part of the
commit specific to this bug is all in read.c in scm_read_string and

I didn't commit it because, at the time, I took exception with the r6rs spec

It states that <intraline-whitespace><line-ending><intraline-whitespace>
expands to nothing.  And then it calls out that whitespace and line-ending are
any characters in the Unicode whitespace and line ending families!

I guarantee that no one will ever put something like <U+005d "backslash">
<U+205F "medium mathematical space"> <U+2028 "line separator"> <U+2006 "6 per
em space"> in the middle of a source code file.  It will never, ever happen. 
But writing the code to allow for all those cases lead to an ugly patch.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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