Re: [go-nuts] Why "strings" package exists ?

2018-08-16 Thread isfrog
Thank you, Ian. 在 2018年8月15日星期三 UTC+8下午12:36:31,Ian Lance Taylor写道: > > On Tue, Aug 14, 2018 at 7:37 PM, > wrote: > > > > Why not define the methods on type "string" ? > > I look up the document, strings package handles string with UTF-8 > encoding. > > is it the reason ? > > if not, it's

[go-nuts] Why "strings" package exists ?

2018-08-14 Thread isfrog
Why not define the methods on type "string" ? I look up the document, strings package handles string with UTF-8 encoding. is it the reason ? if not, it's design decision or any other reasons ? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.