已采納回答 / liuyubobobo
謝謝你的支持:)根據官方說法,六月份的WWDC,蘋果會 introduce Swift 3.0 to public. 預計屆時XCode8的beta版會放出,讓大家嘗試使用Swift3.0。正式版本至少要9月份才會放出,搞不好會是年底。至于課程3.0化的問題,我現在能做的也只是在Swift3.0正式發布后,將這個課程的官方github里的源代碼:https://github.com/liuyubobobo/Play-with-Swift-2?升級為支持Swift3,與此同時,在已有的2.0課程相應的評論區...
2016-05-29
講師回答 / liuyubobobo
因為解包可能失敗啊。if語句的意義就是,不僅要考慮解包成功的后續邏輯,還告訴開發者,這個解包成果是if的(只是如果),有必要的話要考慮else哦。
2016-05-27
已采納回答 / liuyubobobo
It's a great question! I really want to introduce more about these kinds of topics, as well as more concepts about Function Programming in the future advanced tutorial video. Just look forwarding to it :)Hint: We can use extension, which we will introduce...
2016-05-22