Re: [swift-corelibs-dev] Why URL doesn't have fileReferenceURL and isFileReferenceURL, but NSURL has?

2016-12-06 Thread Tony Parker via swift-corelibs-dev
You can actually see how we changed our minds on this if you look at the history of the URL.swift file in the Foundation overlay in the Swift project. Basically: if struct URL could be a reference, then almost all of its methods/functions needed to be marked as ‘throws’, including all of the pat

Re: [swift-corelibs-dev] SwiftXCTest proposals to make it more useful as a framework and for other platforms

2016-12-06 Thread Ilya Laryionau via swift-corelibs-dev
I suggest adding XCTestSuite.init method with the following signature: public init(name: String, testCaseEntries: [XCTestCaseEntry]) as for 1. >> I suggest implementing API that allows creating XCTestSuite from a list of >> XCTestCaseEntries. Ilya > On 6 Dec 2016, at 12:50, Ilya Laryionau wrot

Re: [swift-corelibs-dev] Why URL doesn't have fileReferenceURL and isFileReferenceURL, but NSURL has?

2016-12-06 Thread Ilya Laryionau via swift-corelibs-dev
Ole, Thank you for a quick response. Ilya > On 6 Dec 2016, at 14:56, Ole Begemann wrote: > >> The question is the subject, but anyway I’ll repeat it here: Why URL >> doesn't have fileReferenceURL and isFileReferenceURL, but NSURL has? Is >> it by design? If it’s a bug I can create an issue in

Re: [swift-corelibs-dev] Why URL doesn't have fileReferenceURL and isFileReferenceURL, but NSURL has?

2016-12-06 Thread Ole Begemann via swift-corelibs-dev
The question is the subject, but anyway I’ll repeat it here: Why URL doesn't have fileReferenceURL and isFileReferenceURL, but NSURL has? Is it by design? If it’s a bug I can create an issue in https://bugs.swift.org. It seems this is intentional, see SR-2728: https://bugs.swift.org/browse/SR-2

[swift-corelibs-dev] Why URL doesn't have fileReferenceURL and isFileReferenceURL, but NSURL has?

2016-12-06 Thread Ilya Laryionau via swift-corelibs-dev
Hello Community, The question is the subject, but anyway I’ll repeat it here: Why URL doesn't have fileReferenceURL and isFileReferenceURL, but NSURL has? Is it by design? If it’s a bug I can create an issue in https://bugs.swift.org . Ilya_

Re: [swift-corelibs-dev] SwiftXCTest proposals to make it more useful as a framework and for other platforms

2016-12-06 Thread Ilya Laryionau via swift-corelibs-dev
Brian, Thank you for your feedback. I need some time to think about the API for the first and the seconds points. I’m going to create it as a list of protocol in gist. Ilya > On 5 Dec 2016, at 20:50, Brian Gesiak wrote: > > Ilya, > > I would love to see both of your suggestions implemented,