Re: Possible to defer initialization of let variable?
Re: Possible to defer initialization of let variable?
- Subject: Re: Possible to defer initialization of let variable?
- From: Quincey Morris <email@hidden>
- Date: Tue, 07 Jul 2015 08:16:40 +0000
On Jul 7, 2015, at 01:08 , Rick Mann <email@hidden> wrote:
>
> But I can't get Swift 2 to let me.
You’ve left a path through the code that doesn’t set ‘someString’. So, you’ll need to add:
> else
> {
> someString = nil
> }
to the ‘if’.
_______________________________________________
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