Commit c26ca912 authored by Rob Pike's avatar Rob Pike

spec: skip carriage returns in raw literals

This change guarantees that whether the line ending convention
when the source is created includes carriage returns is irrelevant
to the value of the string. See issue 680.

The compilers do not yet implement this.

R=golang-dev, adg, r, gri, rsc, iant
CC=golang-dev
https://golang.org/cl/5491043
parent 2ad8a9c5
<!-- title The Go Programming Language Specification -->
<!-- subtitle Version of December 13, 2011 -->
<!-- subtitle Version of December 14, 2011 -->
<!--
TODO
......@@ -454,6 +454,8 @@ back quote. The value of a raw string literal is the
string composed of the uninterpreted characters between the quotes;
in particular, backslashes have no special meaning and the string may
span multiple lines.
Carriage returns inside raw string literals
are discarded from the raw string value.
</p>
<p>
Interpreted string literals are character sequences between double
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment