[swift-evolution] Optional Setting

Jacob Bandes-Storch jtbandes at gmail.com
Tue Dec 15 17:03:19 CST 2015


And also http://www.openradar.me/radar?id=4518774854123520

Jacob

On Tue, Dec 15, 2015 at 3:00 PM, Jacob Bandes-Storch <jtbandes at gmail.com>
wrote:

> I filed this as rdar://22469833. It was marked as a duplicate of
> rdar://19833281.
>
> Jacob Bandes-Storch
>
> On Tue, Dec 15, 2015 at 2:53 PM, James Campbell via swift-evolution <
> swift-evolution at swift.org> wrote:
>
>> Would be great to have a ?= syntax.
>>
>> So if
>>
>> var a: [String]? is nil then
>>
>> a ?= []
>>
>> will set it with a new array but if it already has a value then it won't
>> do anything :)/
>>
>> --
>>  Wizard
>> james at supmenow.com
>> +44 7523 279 698
>>
>> _______________________________________________
>> 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/20151215/db07b65b/attachment.html>


More information about the swift-evolution mailing list