• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Simple Swift question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Simple Swift question (From: Rick Mann <email@hidden>)
 >Re: Simple Swift question (From: Jens Alfke <email@hidden>)
 >Re: Simple Swift question (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Simple Swift question
  • Next by Date: Re: Cheating a synchronous call on the main thread
  • Previous by thread: Re: Simple Swift question
  • Next by thread: Re: Simple Swift question
  • Index(es):
    • Date
    • Thread