On 05.04.2017 20:30, David Sweeris via swift-users wrote:

On Apr 5, 2017, at 07:49, Rien via swift-users <swift-users@swift.org> wrote:


On 05 Apr 2017, at 16:26, Maxim Veksler via swift-users <swift-users@swift.org> 
wrote:

Hi,

Swift 3.1 compiler seems to introduces a new complier warning regarding 
String(describing: )

So this line:
Log.info("Update name for user \(fbUser)”)

Log.info(“Update name for user \(fbUser ?? “Unknown”)”)

I thought we couldn't nest quotes. Has that changed (because that would be 
fantastic)?

Yes, this is working currently.
Btw, also should be mentioned that fbUser.debugDescription can be used explicitly to silence the warning, but 'Optional("username")' will be printed in log (instead of just 'username').


- Dave Sweeris
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to