• 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: Swift 2 throws from init()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swift 2 throws from init()


  • Subject: Re: Swift 2 throws from init()
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 02 Jul 2015 00:48:30 +0000

On Jul 1, 2015, at 17:39 , Rick Mann <email@hidden> wrote:
>
> What's the run-time penalty of using implicitly- or force-unwrapped Optionals? Does it do a check for null at each invocation, or does it crash?

I’d propose that not returning from the initializer at all is a better solution. If there’s no reasonable *recovery* from this situation, why is it helpful simply to push the problem upstream?



_______________________________________________

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


  • Follow-Ups:
    • Re: Swift 2 throws from init()
      • From: Rick Mann <email@hidden>
References: 
 >Swift 2 throws from init() (From: Rick Mann <email@hidden>)
 >Re: Swift 2 throws from init() (From: Greg Parker <email@hidden>)
 >Re: Swift 2 throws from init() (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Swift 2 throws from init()
  • Next by Date: Re: Swift 2 throws from init()
  • Previous by thread: Re: Swift 2 throws from init()
  • Next by thread: Re: Swift 2 throws from init()
  • Index(es):
    • Date
    • Thread