[swift-evolution] What about garbage collection?
Paul Ossenbruggen
possen at gmail.com
Mon Feb 8 22:54:29 CST 2016
>
> On Feb 8, 2016, at 1:00 PM, Chris Lattner via swift-evolution <swift-evolution at swift.org> wrote:
>
>>
>> the closure capture syntax uses up an unreasonable amount of mindshare just because of [weak self]
>
> I think that this specific point is solvable in others ways, but I’ll interpret this bullet as saying that you don’t want to worry about weak/unowned pointers. I completely agree that we strive to provide a simple programming model, and I can see how "not having to think about memory management" seems appealing.
>
I actually like RC, and don’t find it particularly problematic except in this one case…the closure case. If we could solve this one problem then I think the rest of it is fine. I don’t mind remembering to put a weak reference in for back pointers etc. The benefits of RC are great, and the introduction of ARC was a great mental burden lifted of developer’s minds. Just trying to explain and remember all the tricky rules around the closure capture would be nice to solve and would love to discuss that rather than garbage collection.
- Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160208/5fd12c25/attachment.html>
More information about the swift-evolution
mailing list