Re: [swift-corelibs-dev] Query on init methods in Data.swift

2016-08-09 Thread Simon Evans via swift-corelibs-dev
Hi Tony, Thats good to know, I have actually done a fix to convert them both to non-optional, I will create a PR once the jenkins CI is working again and my PR#501 is merged. Simon > On 8 Aug 2016, at 18:05, Tony Parker wrote: > > Hi Simon, > > The correct one is the non-optional version.

Re: [swift-corelibs-dev] Query on init methods in Data.swift

2016-08-08 Thread Tony Parker via swift-corelibs-dev
Hi Simon, The correct one is the non-optional version. We changed it after some discussion about if it made sense for Data to attempt to return nil here, when there are so many ways for memory allocation to fail without returning an optional. We’re working on updating the swift-corelibs-founda