nspcc-dev / neofs-sdk-go

Go implementation of NeoFS SDK
Apache License 2.0
5 stars 14 forks source link

Document mutability of reference types #509

Closed smallhive closed 1 year ago

smallhive commented 1 year ago

Marked method which returning value must not be changed, because it leads to data malfunction. Left as is places where we create a new var and return it by pointer. Such var mutation is safe for our structs.

closes #187

roman-khimov commented 1 year ago

Needs to be rebased now.

roman-khimov commented 1 year ago

Conflicts.

smallhive commented 1 year ago

Rebased