[swift-users] dispatch queue attributes

2017-02-11 Thread J.E. Schotsman via swift-users
Hello, Once a dispatch queue has been created it is not possible to get its attributes, autorelease frequency and target (unless I am mistaken). Is this by design? Jan E. ___ swift-users mailing list swift-users@swift.org

Re: [swift-users] [swift-evolution] for in? optionalCollection {

2017-02-11 Thread Zhao Xin via swift-users
What about just use test?.forEach { print($0) } Zhaoxin On Sat, Feb 11, 2017 at 7:48 PM, Tino Heth via swift-evolution < swift-evolut...@swift.org> wrote: > This one started over at swift-users, with a question on how to deal with > looping over containers that may be nil. > > Imho the beauty

Re: [swift-users] [swift-evolution] for in? optionalCollection {

2017-02-11 Thread André “Zephyz” Videla via swift-users
I don't think this use case warrants a syntax change since it can already be expressed quite elegantly with let test: [Int]? = nil test?.forEach { i in print(i) } Maybe "in?" could be used instead of let test: [Int?] = [0,1,nil,3] for case let i? in test { print(i) } ? > On 11 Feb

[swift-users] for in? optionalCollection {

2017-02-11 Thread Tino Heth via swift-users
This one started over at swift-users, with a question on how to deal with looping over containers that may be nil. Imho the beauty of the feature is that it's simple enough to be explained in the subject line, but here is the "long" story: let test: [Int]? = nil // this is possible now if let