[swift-evolution] [Idea] if let value!

Johan Jensen jj at johanjensen.dk
Tue May 17 08:51:31 CDT 2016

This was one of the first and most commonly suggested ideas, when the Swift
Evolution mailing list first started.
Chris Lattner sums it up
in one of those threads:

> This is commonly requested - the problem is that while it does help
reduce boilerplate, it runs counter to the goal of improving clarity.

— Johan

On Tue, May 17, 2016 at 3:43 PM, Vladimir.S via swift-evolution <
swift-evolution at swift.org> wrote:

> It is common to shadow optional value name with unwrapped value with same
> name:
> if let someGoodValue = someGoodValue {...}
> What if we'll have a syntax to not repeat the variable name to achieve the
> same target:
> if let someGoodValue! {...}
> What do you think?
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160517/f029355a/attachment.html>

More information about the swift-evolution mailing list