帶隱式展開選項的SWIFT 3不正確的字符串插值為什么隱式展開選項在SWIFT 3中使用字符串插補時不打開嗎?例在操場上運行以下代碼var str: String!str = "Hello"print("The following should not be printed as an optional: \(str)")產生這個輸出:The following should not be printed as an optional: Optional("Hello")當然,我可以將字符串與+運算符,但我在我的應用程序中幾乎到處使用字符串插值,現在由于這個(bug?)而不再工作了。這是一個錯誤,還是他們故意改變這種行為與SWIFT 3?
- 3 回答
- 0 關注
- 528 瀏覽
添加回答
舉報
0/150
提交
取消