Descriptionallow direct conversion between string and named []byte, []rune
The allowed conversions before and after are:
type Tstring string
type Tbyte []byte
type Trune []rune
string <-> string // ok
string <-> []byte // ok
string <-> []rune // ok
string <-> Tstring // ok
string <-> Tbyte // was illegal, now ok
string <-> Trune // was illegal, now ok
Tstring <-> string // ok
Tstring <-> []byte // ok
Tstring <-> []rune // ok
Tstring <-> Tstring // ok
Tstring <-> Tbyte // was illegal, now ok
Tstring <-> Trune // was illegal, now ok
Update spec, compiler, tests. Use in a few packages.
We agreed on this a few months ago but never implemented it.
Fixes issue 1707.
Patch Set 1 #Patch Set 2 : diff -r f754c9eb88cf https://go.googlecode.com/hg/ #Patch Set 3 : diff -r f754c9eb88cf https://go.googlecode.com/hg/ #
Total comments: 5
Patch Set 4 : diff -r 7b82e8f65537 https://go.googlecode.com/hg/ #
MessagesTotal messages: 5
|