> On Mar 29, 2016, at 4:18 PM, Dave Abrahams via swift-evolution 
> <[email protected]> wrote:
> 
> 
> on Tue Mar 29 2016, Joe Groff <[email protected]> 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.

Ok, it sounds like there is support for the return value.  Tim, feel free to 
include it, but mention that it is controversial in the “alternatives 
considered” section.  The community can hash it out in the review period, 
thanks!

-Chris
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to