The review of "SE-0061: Add Generic Result and Error Handling to
autoreleasepool()" begins now and runs through April 26. The proposal is
available here:
or, if you would like to keep your feedback private, directly to the
review manager.
What goes into a review?
The goal of the review process is to improve the proposal under review
through constructive criticism and, eventually, determine the
direction of Swift. When writing your review, here are some questions
you might want to answer in your review:
* What is your evaluation of the proposal?
* Is the problem being addressed significant enough to warrant a
change to Swift?
* Does this proposal fit well with the feel and direction of
Swift?
* If you have you used other languages or libraries with a
similar feature, how do you feel that this proposal compares
to those?
* How much effort did you put into your review? A glance, a
quick reading, or an in-depth study?
More information about the Swift evolution process is available at
+1. I believe "pass-through" functions such as autoreleasepool,
withExtendedLifetime/withUnsafePointer, dispatch_sync, etc. should all have
a generic-result/rethrowing signature.
* Is the problem being addressed significant enough to warrant a
change to Swift?
Workarounds were doable, but clunky.
* Does this proposal fit well with the feel and direction of
Swift?
Seems so.
* If you have you used other languages or libraries with a
similar feature, how do you feel that this proposal compares
to those?
N/A
* How much effort did you put into your review? A glance, a
quick reading, or an in-depth study?
Quick reading of the proposal, because the implementation is very simple,
and I've implemented similar utility functions before.
A big +1 from me. It doesn't create any incompatibilities. Old code will behave the same as before. autoreleasepool works more like @autoreleasepool from Objective-C now.
* Is the problem being addressed significant enough to warrant a
change to Swift?
The problem is not very big, but since the change doesn't introduce any incompatibilities, I'd say: Yes
* Does this proposal fit well with the feel and direction of
Swift?
I think so.
* If you have you used other languages or libraries with a
similar feature, how do you feel that this proposal compares
to those?
Well, Objective-C has the @autoreleasepool. I think the only reason why it is available in Swift too, is because Swift is normally used on top of the Objective-C runtime. Swift's autoreleasepool will behave more like the original @autoreleasepool if this proposal is implemented. Implementing the proposal feels more like a bugfix to me.
* How much effort did you put into your review? A glance, a
quick reading, or an in-depth study?