ChezScheme icon indicating copy to clipboard operation
ChezScheme copied to clipboard

Add r7rs character names

Open ecraven opened this issue 7 years ago • 6 comments

Make ChezScheme read #\escape and #\null, and also | inside strings. This does nothing about actually writing, it is just meant to make interoperability with R7RS schemes easier.

ecraven avatar Jun 22 '18 09:06 ecraven

I don't object to these changes, but I'm curious. What is the point of treating | as | inside a string?

In the implementation, it seems better to handle it in the case just just above the one your modified that handles \ and " similarly. Please add a LOG entry and a couple of mats.

dybvig avatar Jul 09 '18 17:07 dybvig

@dybvig I'll rewrite the patch accordingly. It seems the only reason | is included is for compatibility with '|foo|bar|. Not a decision I know how to defend myself, but it is what r7rs is ;)

ecraven avatar Feb 21 '19 11:02 ecraven

When asking on #scheme (2018-06-22), the answer was: \| is necessary when escaping symbols, and we allowed it in strings for uniformity

ecraven avatar Feb 21 '19 13:02 ecraven

Recognizing that this a relatively small change, it should probably update the documentation to reflect the added character names and string escape. The LOG entries should also include the modified file, as the other entries in the LOG do.

akeep avatar Jun 19 '21 21:06 akeep

May I help with something if it is stalled?

omasanori avatar Jun 02 '22 01:06 omasanori

@ecraven, if you'd like to proceed with this change, please update the documentation and release notes.

burgerrg avatar Oct 18 '23 15:10 burgerrg