[swift-evolution] [Proposal draft] Use obtain let instead if let construction
thislooksfun at repbot.org
Sat Jan 7 21:12:19 CST 2017
-1 from me, I think that it makes perfect sense the way it is.
More specifically, I read `if let safe = optional` as "if optional can be unwrapped into safe, then ..."
I think `obtain let` is more confusing, as it's not clear that it's a conditional from that keyword. Plus to me, "obtain" seems like it would be getting something from somewhere else, not always locally, maybe use an `unwrap` keyword in there somewhere, if you want it to be very clear what's happening?
> On Jan 7, 2017, at 8:46 PM, Carlos García via swift-evolution <swift-evolution at swift.org> wrote:
> Hi all,
> Here’s a draft proposal to change if let construction for obtain let. Proposal is at:
> https://github.com/carlosypunto/swift-evolution/blob/obtain-let-instead-if-let/proposals/XXXX-Use-obtain-let-instead-if-let-constructions.md <https://github.com/carlosypunto/swift-evolution/blob/obtain-let-instead-if-let/proposals/XXXX-Use-obtain-let-instead-if-let-constructions.md>
> I would like to see what you think and get help with "Effect on ABI stability" and "Effect on API resilience" points
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution