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
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
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
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