4 ms·
> Ownership is only relevant in the presence of mutability. In a GC'ed language where most or all data is immutable, one rarely needs to think about ownership.
by sixbrx 11y ago
> Ownership is only relevant in the presence of mutability.
In a GC'ed language where most or all data is immutable, one rarely needs to think about ownership.
If mutability isn't needed, then you would declare the self parameter as a simple (non-exclusive) borrow, and you can borrow from it or parts of it freely without inteferance from the compiler.