[swift-evolution] Update the signature of ObjectiveC.autoreleasepool [SR-842]

Dave Abrahams dabrahams at apple.com
Tue Mar 29 18:18:38 CDT 2016


on Tue Mar 29 2016, Joe Groff <swift-evolution at swift.org> wrote:

> Yeah, I agree with Jordan, the analogy to `forEach` makes no sense,
> Chris. The standard library is overwhelmingly consistent in forwarding
> return values from its "scope-guard"-like functions which set up a
> thing, call a closure once, clean up the thing, then
> return. `autoreleasepool` is the odd one out.

+1; there's really no good reason to hobble autoreleasepool AFAICS.

-- 
Dave



More information about the swift-evolution mailing list