[swift-evolution] Add conversion String -> Bool

Brent Royal-Gordon brent at architechies.com
Sat Jun 4 09:22:27 CDT 2016


> It would be great if we had `init?(_ text: String)` for Bool class. Because sometime when you're processing JSON/XML it can help you a lot.

Way ahead of you: https://github.com/apple/swift-evolution/blob/master/proposals/0089-rename-string-reflection-init.md

(I'm not quite sure what's going on with the "scheduled for review" at the top, so let's leave that bit aside for now.)

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list