> On Aug 31, 2016, at 10:21 AM, Dan Loewenherz <[email protected]> wrote:
> 
> You'll need to specify a protocol where you're currently specifying "Bool". A 
> generic constraint can't take a concrete type as an argument. 

OK … this should be described in the book, though. (Any doc writers listening? 
Or is there a procedure for requesting improvements to the book?)

I’m also bemused that (as I said) there is a boolean protocol in Swift 2.2, and 
a different one in master (according to swiftdoc.org <http://swiftdoc.org/>), 
but none in Swift 3.0 (as of Xcode 8 beta 6). Is this just a glitch that snuck 
into the release? Or does the Swift in Xcode predate an API freeze?

—Jens
_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to