[swift-evolution] [Proposal] [Discussion] Explicit Toll-Free Conversions
charlie at charliemonroe.net
Thu Mar 23 00:48:13 CDT 2017
> On Mar 23, 2017, at 6:41 AM, Slava Pestov via swift-evolution <swift-evolution at swift.org> wrote:
>> On Mar 22, 2017, at 10:35 PM, Robert Widmann via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> Alternatives considered
>> Do nothing and continue to accept this implicit conversion.
> One alternative would be to import CFArray as a typealias for NSArray, etc, erasing the distinction between the two types completely. I did suggest this to Jordan at one point and he pointed out some problems, but I don’t remember them now. Hopefully Jordan can chime in.
With CFArray you can create a non-retaining array without creating a weak-wrapper for each object. While it's a less likely scenario, I've used in the past (until I created a weak array to be used in Swift).
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution