String literals should support a \n escape character for newline.
Currently, line breaks in string literals are typed as actual newline characters, violating the formatting/indent of the code and obfuscating whitespace trailing the line before the newline:
(define-constant newline "
")
(define-read-only (hello-world)
(let ((text "Hello World!
Another line"))
text))
With newline escapes:
(define-constant newline "\n")
(define-read-only (hello-world)
(let ((text "Hello World!\nAnother line"))
text))
String literals should support a
\nescape character for newline.Currently, line breaks in string literals are typed as actual newline characters, violating the formatting/indent of the code and obfuscating whitespace trailing the line before the newline:
With newline escapes: