【发布时间】:2014-12-01 21:22:06
【问题描述】:
问题在标题中。
如果我在 REPL 中执行此操作(Windows 命令行中的 SML/NJ)
val x = "hello\nworld";
我希望
val x = "hello
world" : string
或类似的东西,但我明白了
val x = "hello\nworld" : string
虽然我在某处发现 \n 是 SML 字符串中的换行符。
【问题讨论】:
-
val x = "hello\\nworld";怎么样?
标签: string line-breaks sml read-eval-print-loop