[swift-evolution] Required Callback

James Campbell james at supmenow.com
Tue Aug 16 17:37:41 CDT 2016


@noescape is a hint that the callback will only be called once and allows
compiler to optimise, we may or may not be able to combine @required
functionality into that but it looks like it was rejected for now.

@required is a compiler hint / sanity check to enforce that the callback is
actually called once by the developer. There is no focus on any compiler
enhancements other than that.
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160816/a1b17a67/attachment.html>


More information about the swift-evolution mailing list