Re: [swift-users] Future(of: self.references)?

2017-05-24 Thread Travis Griggs via swift-users
> On May 22, 2017, at 5:56 PM, Greg Power wrote: > > Hi Travis, > > I’m certainly not a core contributor, but I could point you to the rejection > email for this proposal, which you might not have seen: > >

[swift-users] Helping the type checker

2017-05-24 Thread Daniel Müllenborn via swift-users
I have recently used the "-warn-long-function-bodies" flag, and have luckily only one place in my code where I should give the compiler a better hint. At Swift 4 it looks a bit different, but I prefer to wait before I make any unnecessary changes. The code is as follows: subscript(path:

[swift-users] Can I have my cake and share it too with extensions?

2017-05-24 Thread Travis Griggs via swift-users
In my own project, I add some extensions to Data and other objects to make building/parsing Data objects easier. Amongst others, I have extensions like this: func += (data:inout Data, string:String) { data.append(string.data(using: .utf8)!) } func += (data:inout Data,

Re: [swift-users] arc4random_uniform on Linux is missing from Foundation??

2017-05-24 Thread Edward Connell via swift-users
Thank you for all the feedback and options. In further investigation, I also ran across the family of xx48 rngs, which appear to be on both platforms. They claim to be uniformly distributed. drand48, erand48, jrand48, lcong48, lrand48, mrand48, nrand48, seed48, srand48