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

Russ Bishop xenadu at gmail.com
Tue Mar 29 22:37:53 CDT 2016


> On Mar 29, 2016, at 10:02 AM, Joe Groff via swift-evolution <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.
> 
> -Joe

One might go so far as to say that if/do/case/etc are the odd ducks in not being expressionized. ;)



Russ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160329/f31a800e/attachment.html>


More information about the swift-evolution mailing list