Re: [swift-corelibs-dev] Scanner with Swift 3

2016-12-05 Thread Philippe Hausler via swift-corelibs-dev
It is worth noting that this is not the only case that has this “flaw”. In many of the AUMPs exposed in Foundation they are really either “out” parameters or in a few cases “inout” parameters (and I think there are a handful of “in” style parameters too). The major issue for refining this in th

[swift-corelibs-dev] Scanner with Swift 3

2016-12-05 Thread Oliver Drobnik via swift-corelibs-dev
Hello, This is a repeat of an earlier post where I did not get a single response... might have fallen through the cracks... Earlier I posted this proposal to the Swift Evolution Mailing list. Then I looked at the NSScanner implementation in core libs and found experimental API using the retu

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

2016-12-05 Thread Brian Gesiak via swift-corelibs-dev
Ilya, I would love to see both of your suggestions implemented, but you may need to submit a swift-evolution proposal for them. I think Apple employees maintaining swift-corelibs-xctest would have a better idea of whether your proposals would be accepted by the core team. (+cc Brian Croom). I thi

Re: [swift-corelibs-dev] Why is Array.init(contentsOfURL:) not available?

2016-12-05 Thread Ole Begemann via swift-corelibs-dev
The main reason is actually that we just prefer people use NSPropertyListSerialization API to read or write property lists. One big reason: that API has the possibility of giving you an error, whereas the collection methods do not. Thanks for the quick reply, Tony, that makes sense. I also hadn'

Re: [swift-corelibs-dev] Interested in contributing to the foundation library, but needed some some pointers to start

2016-12-05 Thread Tony Parker via swift-corelibs-dev
Hi Jacky, Welcome! We are glad to help with getting you started. One place that I think many people have found useful to begin is by checking on an API that they use themselves in their projects on Darwin platforms, and seeing if it’s implemented or not. If not, that’s a good place to start. W

Re: [swift-corelibs-dev] Why is Array.init(contentsOfURL:) not available?

2016-12-05 Thread Tony Parker via swift-corelibs-dev
Hi Ole, > On Dec 5, 2016, at 5:11 AM, Ole Begemann via swift-corelibs-dev > wrote: > > (Apologies if this is not the right list to ask this question. I couldn't > decide between swift-corelibs-dev and swift-dev.) > > I noticed that the NSArray and NSDictionary initializers to create a > coll

[swift-corelibs-dev] Broken master-next?

2016-12-05 Thread Alex Blewitt via swift-corelibs-dev
My pull request failed to build: https://github.com/apple/swift-corelibs-foundation/pull/733 The build failure is entirely unrelated to my changes; it looks like whatever point the branch was taken from/built from, the underlying swi

[swift-corelibs-dev] Why is Array.init(contentsOfURL:) not available?

2016-12-05 Thread Ole Begemann via swift-corelibs-dev
(Apologies if this is not the right list to ask this question. I couldn't decide between swift-corelibs-dev and swift-dev.) I noticed that the NSArray and NSDictionary initializers to create a collection from a property list file are not exposed in the stdlib Array and Dictionary types. The sam

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

2016-12-05 Thread Ilya Laryionau via swift-corelibs-dev
Brian, I appreciate your comments. > You should check out https://bugs.swift.org/browse/SR-710 > . There's been a great deal of > discussion on this topic in the past. I think we left off with the idea that > we should use SourceKit to generate the list of