Re: Swift 2 throws from init()
Re: Swift 2 throws from init()
- Subject: Re: Swift 2 throws from init()
- From: Quincey Morris <email@hidden>
- Date: Fri, 10 Jul 2015 04:20:27 +0000
On Jul 1, 2015, at 18:15 , Greg Parker <email@hidden> wrote:
>
>> On Jul 1, 2015, at 5:39 PM, Rick Mann <email@hidden <mailto:email@hidden>> wrote:
>>
>>> On Jul 1, 2015, at 17:04 , Greg Parker <email@hidden <mailto:email@hidden>> wrote:
>>>
>>> Implicitly unwrapped optional is a good solution for this. The source code is no more complicated outside init, and if you get something wrong then you will get a runtime error with a useful message.
>>
>> All that makes sense, although Jens's answer confuses things a bit ("According to Chris Lattner (on the swift-language mailing list) this is a known problem in the current compiler and will be fixed.").
>
> I described the current model. We would like to improve that model, but (as Chris said) we have a lot of competing demands for compiler engineer-hours.
Amazingly, this change seems to have made it into beta 3. I didn’t see it mentioned in the release notes, though it’s big news!
_______________________________________________
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