Re: Simple Swift question
Re: Simple Swift question
- Subject: Re: Simple Swift question
- From: Kevin Meaney <email@hidden>
- Date: Tue, 30 Jun 2015 09:36:25 +0100
Also the nifty new defer statement works well along with multiple guards if you need to do any cleanup when exiting the scope. The combination is great.
Kevin
> On 29 Jun 2015, at 23:43, Rick Mann <email@hidden> wrote:
>
>
>> On Jun 29, 2015, at 15:35 , Jens Alfke <email@hidden> wrote:
>>
>> The unsightly nesting of the if-lets can be avoided with the nifty new ‘guard’ statement in Swift 2.
>
> Ah, yes, that's what I should be using. Thanks!
>
>
> --
> Rick Mann
> email@hidden
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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