Open novusnota opened 3 weeks ago
Consider the following part of a larger snippet:
let m: map<K, V> = self.map;
Do we get a new reference to self.map or there is some copying going under the hood?
self.map
Same question goes for Structs/Messages, and also to function calls — are we using CBV (Call by value)?
Consider the following part of a larger snippet:
Do we get a new reference to
self.map
or there is some copying going under the hood?Same question goes for Structs/Messages, and also to function calls — are we using CBV (Call by value)?