[swift-evolution] Proposal Draft: Optional Upgrading Assignment.
Maximilian Hünenberger
m.huenenberger at me.com
Thu Feb 4 13:10:03 CST 2016
Although the "reverse" syntax others pointed out fits better. Especially as symmetry to optional pattern matching:
let num = 1? // Int?
if case let n? = num {
n // Int
n? // Int? since it is equal to "num" (why would someone use it here?)
}
But I doubt it is worth implementing only due to symmetry reasons.
The only real use I can imagine would be in conjunction with xxxLiterals.
Therefore -0.5 for this proposal.
- Maximilian
> Am 04.02.2016 um 18:42 schrieb Paul Ossenbruggen via swift-evolution <swift-evolution at swift.org>:
>
> Ok if it conflicts then that is a good reason to not do this.
>
> Sent from my iPhone
>
> On Feb 4, 2016, at 9:35 AM, Chris Lattner <clattner at apple.com <mailto:clattner at apple.com>> wrote:
>
>>
>> ## Proposal
>>
>> I
> _______________________________________________
> 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/20160204/4d3ac93c/attachment.html>
More information about the swift-evolution
mailing list