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