[r6rs-discuss] [Formal] `#\newline' should be reinstated

From: John Cowan <cowan>
Date: Fri, 15 Jun 2007 21:34:49 -0400

Brian C. Barnes scripsit:

> Being fairly new to scheme, I really don't have an opinion one way or the
> other, but as an implementor of a scheme system intended to be r6rs
> compatible (should it receive eventual ratification), I do have a question.
>
> '#\newline' is supposed to be a character constant, correct? There are
> operating systems that define "new line" to be multiple characters. How are
> those systems supposed to define the character "#\newline"?

Internally, R6RS Schemes use LF as the line separator, though any
of the six standard line separators (CR, LF, CR+LF, NEL, CR+NEL, U+2028)
are accepted on input. (This is the same convention as XML.)

Therefore, #\newline should be a synonym for #\linefeed.

-- 
I could dance with you till the cows            John Cowan
come home.  On second thought, I'd              http://www.ccil.org/~cowan
rather dance with the cows when you             cowan at ccil.org
came home.  --Rufus T. Firefly
Received on Fri Jun 15 2007 - 21:34:49 UTC

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