[swift-evolution] Optional Setting
James Campbell
james at supmenow.com
Tue Dec 15 17:21:44 CST 2015
Yes the ??= is a better syntax.
On Tue, Dec 15, 2015 at 11:10 PM, Brent Royal-Gordon <brent at architechies.com
> wrote:
> > I think that the existing syntax for “??” handles this need fairly well
> without requiring an additional assignment operator:
> >
> > a = a ?? []
>
> When the variable is `a`, sure. When it’s
> `scoreboardViewController.selectedScoreboard`, not so much.
>
> +1 from me, though I prefer the `??=` spelling to match the `??` operator
> more closely.
>
> --
> Brent Royal-Gordon
> Architechies
>
>
--
Wizard
james at supmenow.com
+44 7523 279 698
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151215/d6e3c1b3/attachment.html>
More information about the swift-evolution
mailing list