9,101 reputation
20 48


The traditional notion of object ownership via function call (i.e. where it is unconditionally and unquestionably assumed that the caller must own the object throughout the call, and the callee merely "borrows" from it) is detrimental to memory usage if the object passed via the call needs to be released early, in the middle of the call.

In the past, I may have blamed it on other things, but now I see it this way. And this faulty dogma is pandemic; I can't think of any language that escapes from it.

Top Tags (298)

Score 93
Posts 31
Posts % 12
Score 57
Posts 20
Score 56
Posts 22
Score 54
Posts 14
Score 38
Posts 15
Score 37
Posts 11

Top Posts (253) All Questions Answers | Votes Newest

View all questions and answers

Badges (68)

Silver 20


Bronze 48