[swift-corelibs-dev] Query on init methods in Data.swift
Simon Evans
si at si.org
Tue Aug 2 11:27:07 CDT 2016
Hi
I was looking at Data.swift and noticed that 2 of the init methods
were different in corelibs-foundation v swift stdlib
https://github.com/apple/swift-corelibs-foundation/blob/master/Foundation/Data.swift has
public init?(capacity: Int)
public init?(count: Int)
https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/Data.swift has
public init(capacity: Int)
public init(count: Int)
Which are the correct method signatures? I was just doing a PR to fix
init?(count:) not zeroing the data and I wanted to make sure I had this
correct as well
Thanks
Simon
More information about the swift-corelibs-dev
mailing list