[swift-evolution] RFC: Proposed rewrite of Unmanaged<T>

Rainer Brockerhoff rainer at brockerhoff.net
Sun Dec 20 04:22:54 CST 2015


On 20/12/15 1:19 , Dave Abrahams wrote:
> 
>> On Dec 19, 2015, at 5:04 PM, T.J. Usiyan via swift-evolution
>> <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>
>> Would `consumeReleased` work at all? It captures the 'don't use this
>> again' aspect and 'release' without much extra.
> 
> Unfortunately that name seems to imply  you're consuming something that
> has already been released.  You're actually consuming a retain that
> happened in the CF function.

I thought of `autoreleased` (for copy semantics) and `retained` (for
create semantics), but people not used to MRC might think misunderstand
them, I suppose.

-- 
Rainer Brockerhoff  <rainer at brockerhoff.net>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
http://brockerhoff.net/blog/


More information about the swift-evolution mailing list