@cmuratori @Jonathan_Blow If you give me an accessor that returns a non-const reference you are telling me it is safe to modify that value.
@bhsharp @Jonathan_Blow I almost always return by value. This prevents multi-threading problems as well.
-
-
@bhsharp@Jonathan_Blow If the data is huge that's being returned, then the systems are perf-coupled and I typically have special code... -
@bhsharp@Jonathan_Blow ... to handle their interplay, since it cannot be left to someone who doesn't even know what would be constant. - Show replies
New conversation -
-
-
@bhsharp@Jonathan_Blow (any time you return a const reference, you have a multi-threading bug waiting to happen, basically, right...) -
@cmuratori@Jonathan_Blow Yes, this is a good point.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.