[swift-evolution] RFC: Proposed rewrite of Unmanaged<T>
Brent Royal-Gordon
brent at architechies.com
Fri Dec 18 15:18:56 CST 2015
> Also, while unambiguous, it’s a very low-level description of what’s happening, that doesn’t much help the user reading the documentation of a CF function to answer the “which one do I use?” question unless s/he’s already experienced with how to map what it says in that docs onto the use of ADDREF/TAKEREF.
I wonder if, instead of talking about retained/unretained, we should talk about whether the call “created" or “retrieved" the object it’s returning. If it created it, the object is +1; if it retrieved it, the object is +0.
--
Brent Royal-Gordon
Architechies
More information about the swift-evolution
mailing list