Re: [go-nuts] Regarding string immutablity

2018-08-28 Thread Jan Mercl
On Tue, Aug 28, 2018 at 4:55 PM Jay Sharma wrote: > As I am overwriting the content with new content, Is it inplace replacement [same memory is being updated] or a new copy will be created with new content and old content will be there in the memory ? Basically none of that. Strings indeed are i

[go-nuts] Regarding string immutablity

2018-08-28 Thread Jay Sharma
Hi All, I went through documentation and many post. Every where it is specified *strings are immutable*. I have some string : x := "teststring" I want to *wipe out/overwrite* the content of this string x from disk/memory. As per me the simplest way to do this: x = "" or If I want to ov