[swift-evolution] [Proposal] Add an API to Unmanaged to get the instance it holds "@guaranteed"
brent at architechies.com
Wed Mar 16 22:04:39 CDT 2016
> Probably not, The name is a strawman. I guess I could not resist the optimizer speak after all. The programmer is asserting he guarantees the lifetime by other means. I expect if this proposal moves forward the standard library team will decide on the right name for this method.
> assertLifetimeGuarantee, withAssertedLifetime, unsafePassWithAssertedLifetime, ... ?
withUnsafeUnownedValue? I think that conveys the danger—you've been passed a value which you don't own, so something else had better keep it alive—even if it's not technically accurate.
More information about the swift-evolution