> On Dec 5, 2015, at 1:44 PM, Jacob Bandes-Storch via swift-evolution 
> <swift-evolut...@swift.org> wrote:
> 
> One option was to use the API notes feature of the compiler to annotate these 
> APIs as part of the import into Swift. Another is to get the C headers 
> changed (on Darwin too) to add the attribute. We may want to do one approach 
> in the short term and another in the long term.
> 
> I've been operating under the assumption that __attribute__((noescape)) will 
> eventually be deeply understood by clang, and allow the same elision of 
> "self" in Objective-C that @noescape does in Swift. (I filed 
> <rdar://19914650> for this some time ago.)
> 
> Thus, I think it makes the most sense to change the C headers.

I completely agree with that statement, and I think that this change should 
make it into Darwin and swift-corelibs-libdispatch both.

-Pierre

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

Reply via email to