Re: Can I show different content in different screens? (screensaver)
Re: Can I show different content in different screens? (screensaver)
- Subject: Re: Can I show different content in different screens? (screensaver)
- From: Quincey Morris <email@hidden>
- Date: Sat, 25 Jul 2015 02:58:16 +0000
On Jul 24, 2015, at 19:19 , Roland King <email@hidden> wrote:
>
> let myVar = ( let ifNotOptional = something?.something else ) ? ifNotOptional.stringName : “No Name”
>
> but can’t find any syntax to do something like that
Can’t you do something like:
let myVar = something?.somethingElse?.stringName ?? “No Name”
On Jul 24, 2015, at 19:43 , Greg Parker <email@hidden> wrote:
>
> You may prefer the new `guard let` construct for this pattern.
Only when the guard let … else { … } block exits the current scope, though.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden