What's New in Swift

What's New in Swift

Posted by willsbor Kang on 2017-07-12
  1. Class and subtype existentials
  2. main target 與 framework 不用相同的 swift 版本
  3. bridge header 的 complier 速度有改良
  4. 有改善 xcode 的 indexing…
  5. @objc 改變它的特性 原本是無限制的
  • Overriding an Object C method
  • Conforming to an ObjC protocol
  1. Symbol size 會改良
  • Symbol stripping
  1. String protocol 會改良
  • subString -> [String] 會變成 [Substring] (因為sub string 會ref 到原來substring 前的字串,所以如果前字串很大,而要用的 sub string 很小,那就會浪費記憶體)
  1. multi-line String Literals
  2. Enforcing Exclusive Access to Memory