What is wrong with this code?
if let s = String.init("some string") { print(s) }
This String initializer does not return an optional.
String
String does not have an initializer that can take a String.
= is not a comparison.
=
Nothing is wrong with this code. Reference: The Swift Programming Language: Language Guide: The Basics: Optionals