[go-nuts] Re: What does `shallow clone` mean?

2023-08-15 Thread Shinya Sakae
Hi Brian. Thanks for reaching out. I understand. On Monday, August 14, 2023 at 4:11:56 PM UTC+9 Brian Candler wrote: > On Friday, 11 August 2023 at 17:56:01 UTC+1 Shinya Sakae wrote: > > I often hear the term `shallow copy', but I don't know what `shallow > clone` means. > > > Don't worry: they

[go-nuts] Re: What does `shallow clone` mean?

2023-08-14 Thread Brian Candler
On Friday, 11 August 2023 at 17:56:01 UTC+1 Shinya Sakae wrote: I often hear the term `shallow copy', but I don't know what `shallow clone` means. Don't worry: they are the same thing. When cloning a map, the keys and values are set using ordinary assignment, as the description says. It