What's New in Swift - WWDC 2016 - Videos - Apple Developer
(developer.apple.com)
IngramChen
積分 0
safari 才能開。
Swift3 移掉了一些語言功能,不過 XCode8 可以自動轉換的 (但問題在 3rd party...)
最後,那些 Objective C 遺傳下來的超長變數/方法的命名終於要拿掉了。哎哎,Apple 終於承認那個鬼命名規則是錯的。
siuying
積分 0
no, they automatically convert Objective-C convention to Swift conventions. So when you use Swift, you write eloquent Swift code, and when you write Objective-C, you write eloquent ObjC code.
I think this is one of a kind and Apple is the first one did something like that, impressive feat. They even translate C based API to object like API: Import As Member1
如果 Apple 能再重新設計一次 Objective C,那就不會再用長命名了吧。
這次改變1 重點真不是方法長短 :
-public func readLine(stripNewline stripNewline: Bool = true) -> String?
+public func readLine(strippingNewline strippingNewline: Bool = true) -> String?