Why are implicitly unwrapped optionals not unwrapped when using string interpolation in Swift 3?
Example: Running the following code in the playground
var str: String! str = "Hello" print("The following should not be printed as an optional: \(str)")
produces this output:
The following should not be printed as an optional: Optional("Hello")
Of course I can concatenate strings with the
+ operator but I'm using string interpolation pretty much everywhere in my app which now doesn't work anymore due to this (bug?).
Is this even a bug or did they intentionally change this behaviour with Swift 3?