diff --git a/source/chapter1/03_revision_history.md b/source/chapter1/03_revision_history.md index 57d862b9..27151a84 100644 --- a/source/chapter1/03_revision_history.md +++ b/source/chapter1/03_revision_history.md @@ -1,5 +1,5 @@ -> 翻译:[成都老码团队](http://weibo.com/u/5241713117) -> 校对:[成都老码团队](http://weibo.com/u/5241713117) +> 翻译:[成都老码团队翻译组-Ayra](http://weibo.com/littlekok/) +> 校对:[成都老码团队翻译组-Oberyn](http://weibo.com/u/5241713117) # Swift 版本历史记录 @@ -9,215 +9,225 @@ - [XCode6 Beta5 Swift语法文档更新](#xcode6_beta5) - [XCode6 Beta4 Swift语法文档更新](#xcode6_beta4) +- [XCode6 Beta3 Swift语法文档更新](#xcode6_beta3) +- [XCode6 Beta2 Swift语法文档更新](#xcode6_beta2) +- [XCode6 Beta1 Swift语法文档更新](#xcode6_beta1) - XCode6下载: [老码云盘下载](http://pan.baidu.com/disk/home#from=share_pan_logo&path=%252F%25E8%2580%2581%25E7%25A0%2581%25E4%25BA%2591%25E7%259B%2598-XCode6%252FXCode6-Beta5) 以下部分是针对XCode6每一次Beta版本直至正式版发布,Swift语法部分的更新归类 -# XCode6 Beta5中Swift语法更新 +### XCode6 Beta5中Swift语法更新 - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - + +

- Date -

- Notes -

- 2014-08-04 -

    -
  • - Optionals no longer implicitly evaluate to true when they have a value and false when they do not, to avoid confusion when working with optional Bool values. Instead, make an explicit check against nil with the == or != operators to find out if an optional contains a value. -

    -
  • - Swift now has a Nil Coalescing Operator (a ?? b), which unwraps an optional’s value if it exists, or returns a default value if the optional is nil. -

    -
  • - Updated and expanded the Comparing Strings section to reflect and demonstrate that string and character comparison and prefix / suffix comparison are now based on Unicode canonical equivalence of extended grapheme clusters. -

    -
  • - You can now try to set a property’s value, assign to a subscript, or call a mutating method or operator through Optional Chaining. The information about Accessing Properties Through Optional Chaining has been updated accordingly, and the examples of checking for method call success in Calling Methods Through Optional Chaining have been expanded to show how to check for property setting success. -

    -
  • - Added a new section about Accessing Subscripts of Optional Type through optional chaining. -

    -
  • - Updated the Accessing and Modifying an Array section to note that you can no longer append a single item to an array with the += operator. Instead, use the append method, or append a single-item array with the += operator. -

    -
  • - Added a note that the start value a for the Range Operators a...b and a..<b must not be greater than the end value b. -

    -
  • - Rewrote the Inheritance chapter to remove its introductory coverage of initializer overrides. This chapter now focuses more on the addition of new functionality in a subclass, and the modification of existing functionality with overrides. The chapter’s example of Overriding Property Getters and Setters has been rewritten to show how to override a description property. (The examples of modifying an inherited property’s default value in a subclass initializer have been moved to the Initialization chapter.) -

    -
  • - Updated the Initializer Inheritance and Overriding section to note that overrides of a designated initializer must now be marked with the override modifier. -

    -
  • - Updated the Required Initializers section to note that the required modifier is now written before every subclass implementation of a required initializer, and that the requirements for required initializers can now be satisfied by automatically inherited initializers. -

    -
  • - Infix Operator Functions no longer require the @infix attribute. -

    -
  • - The @prefix and @postfix attributes for Prefix and Postfix Operators have been replaced by prefix and postfix declaration modifiers. -

    -
  • - Added a note about the order in which Prefix and Postfix Operators are applied when both a prefix and a postfix operator are applied to the same operand. -

    -
  • - Operator functions for Compound Assignment Operators no longer use the @assignment attribute when defining the function. -

    -
  • - The order in which modifiers are specified when defining Custom Operators has changed. You now write prefix operator rather than operator prefix, for example. -

    -
  • - Added information about the dynamic declaration modifier in Declaration Modifiers. -

    -
  • - Added information about how type inference works with Literals. -

    -
  • - Added more information about Curried Functions. -

    -
  • -

- 2014-07-21 -

- 2014-07-07 -

- 2014-06-02 +
发布日期语法变更记录
2014-08-04
    +
  • + Optionals no longer implicitly evaluate to true when they have a value and false when they do not, to avoid confusion when working with optional Bool values. Instead, make an explicit check against nil with the == or != operators to find out if an optional contains a value.

    +
  • +
  • + Swift now has a Nil Coalescing Operator (a ?? b), which unwraps an optional’s value if it exists, or returns a default value if the optional is nil.

    +
  • +
  • + Updated and expanded the Comparing Strings section to reflect and demonstrate that string and character comparison and prefix / suffix comparison are now based on Unicode canonical equivalence of extended grapheme clusters.

    +
  • +
  • + You can now try to set a property’s value, assign to a subscript, or call a mutating method or operator through Optional Chaining. The information about Accessing Properties Through Optional Chaining has been updated accordingly, and the examples of checking for method call success in Calling Methods Through Optional Chaining have been expanded to show how to check for property setting success.

    +
  • +
  • + Added a new section about Accessing Subscripts of Optional Type through optional chaining.

    +
  • +
  • + Updated the Accessing and Modifying an Array section to note that you can no longer append a single item to an array with the += operator. Instead, use the append method, or append a single-item array with the += operator.

  • +
  • + Added a note that the start value a for the Range Operators a...b and a..<b must not be greater than the end value b.

    +
  • +
  • + Rewrote the Inheritance chapter to remove its introductory coverage of initializer overrides. This chapter now focuses more on the addition of new functionality in a subclass, and the modification of existing functionality with overrides. The chapter’s example of Overriding Property Getters and Setters has been rewritten to show how to override a description property. (The examples of modifying an inherited property’s default value in a subclass initializer have been moved to the Initialization chapter.)

    +
  • +
  • + Updated the Initializer Inheritance and Overriding section to note that overrides of a designated initializer must now be marked with the override modifier.

    +
  • +
  • + Updated the Required Initializers section to note that the required modifier is now written before every subclass implementation of a required initializer, and that the requirements for required initializers can now be satisfied by automatically inherited initializers.

    +
  • +
  • + Infix Operator Functions no longer require the @infix attribute.

    +
  • +
  • + The @prefix and @postfix attributes for Prefix and Postfix Operators have been replaced by prefix and postfix declaration modifiers.

    +
  • +
  • + Added a note about the order in which Prefix and Postfix Operators are applied when both a prefix and a postfix operator are applied to the same operand.

    +
  • +
  • + Operator functions for Compound Assignment Operators no longer use the @assignment attribute when defining the function.

    +
  • +
  • + The order in which modifiers are specified when defining Custom Operators has changed. You now write prefix operator rather than operator prefix, for example.

    +
  • +
  • + Added information about the dynamic declaration modifier in Declaration Modifiers.

    +
  • +
  • + Added information about how type inference works with Literals.

    +
  • +
  • + Added more information about Curried Functions.

    +
  • +
-
  • +
  • + +#### XCode6 Beta4中Swift语法更新 + + + + + + + + + + + + + + +
    发布日期语法变更记录
    2014-07-21
    + +#### XCode6 Beta3中Swift语法更新 + + + + + + + + + + + + + + +
    发布日期语法变更记录
    2014-07-7
    + +#### XCode6 Beta2中Swift语法更新 + + + + + + + + + + +
    发布日期语法变更记录
    2014-07-7
      +
    • 发布新的文档用以详述Swift - 苹果公司针对iOS和OS X应用的全新开发语言

    - - + +#### XCode6 Beta1中Swift语法更新 +
    - - + + - - - + + +
    日期备注发布日期语法变更记录
    2014-08-04马上更新
    2014-06-3
      +
    • + 苹果全球开发者大会WWDC2014召开,发布了苹果最新的开发语言Swift,并释放出XCode6 Beta1版本 +

    • +
    - -# XCode6 Beta4中Swift语法更新 - - - - - - - - - - - - - -
    日期备注
    2014-08-04马上更新
    \ No newline at end of file +