Re: [go-nuts] Question on rune literals in golang spec

2017-01-16 Thread spencer
> It cannot; that's why it's an error if attempted. > > The parenthesized phrase is redundant but explanatory. > Thank you, Commander Rob :). As a newbie I was suspicious that the phrase "(it is not a single code point)" had some deep implication that I did not understand. Might I suggest di

Re: [go-nuts] Question on rune literals in golang spec

2017-01-15 Thread Rob Pike
It cannot; that's why it's an error if attempted. The parenthesized phrase is redundant but explanatory. -rob On Mon, Jan 16, 2017 at 10:44 AM, wrote: > "If the source code represents a character as two code points, such as a > combining form involving an accent and a letter, the result will

[go-nuts] Question on rune literals in golang spec

2017-01-15 Thread spencer
"If the source code represents a character as two code points, such as a combining form involving an accent and a letter, the result will be an error if placed in a rune literal (it is not a single code point), and will appear as two code points if placed in a string literal." Am I reading this