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

John Cowan cowan at ccil.org
Fri Jun 15 21:34:49 EDT 2007


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



More information about the r6rs-discuss mailing list