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 <rm...@latencyzero.com> wrote:
> 
> 
>> On Jun 29, 2015, at 15:35 , Jens Alfke <j...@mooseyard.com> 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
> rm...@latencyzero.com
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/ktam%40yvs.eu.com
> 
> This email sent to k...@yvs.eu.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to