[swift-evolution] Proposal: Allow `[strong self]` capture in closures and remove the `self` requirement therein

Andrey Tarantsov andrey at tarantsov.com
Thu Dec 17 03:46:32 CST 2015


+1, this has been a noticeable source of annoyance. Marc Knaup has said it best:

> Developers will likely only ever write the rather uncommon [strong self] capture when they know what they are doing.
> Misuse can happen with any feature, but it is unlikely in this case.

I *am* concerned about an inconsistency here, though; is [strong self] just a magical workaround for one specific case, or could this be a part of a larger rule?

A.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151217/227f42b1/attachment.html>


More information about the swift-evolution mailing list