Skip to content

Commit 9fdda1e

Browse files
author
兰梦
committed
2 parents 4d96879 + ab627a5 commit 9fdda1e

18 files changed

+3696
-737
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ The Swift Programming Language 中文化项目
1212
* Swift 初见 [认领 by 容隽] [review by 闻西]
1313
* Swift 教程
1414
* 基础部分 [已完成 by 琼雪] [review by 栖邀]
15-
* 基本操作符 [认领 by 冰浠]
15+
* 基本操作符 [认领 by 冰浠] [review by 姜天意]
1616
* 字符串和字符 [已完成 by 筱谷] [review by 尘境]
17-
* 集合类型 [认领 by 尘境]
17+
* 集合类型 [已完成 by 尘境]
1818
* 控制流 [认领 by 墨昕]
1919
* 函数 [已完成 by 紫溪] [review by 飞长]
20-
* 闭包 [认领 by 闻西]
20+
* 闭包 [认领 by 闻西] [review by 米尔]
2121
* 枚举 [已完成 by 灵吾] [review by 筱谷]
2222
* 类和结构体 [已完成 by 晓毒]
2323
* 属性 [认领 by 周源] [review by 林晚]
@@ -27,24 +27,24 @@ The Swift Programming Language 中文化项目
2727
* 构造过程 [认领 by 刘康] [review by 晓毒]
2828
* 析构过程 [认领 by 许诺] [review by 祁涛]
2929
* 自动引用计数 [认领 by 韩国兴/MK] [review by 孟志昂]
30-
* 可选链 [认领 by 重鱼]
31-
* 类型转换 [认领 by 孟志昂]
32-
* 嵌套类型 [认领 by 祁涛]
33-
* 扩展 [已完成 by 袁鹏]
34-
* 协议 [认领 by 姜天意][review by 重鱼]
35-
* 泛型 [已完成 by 晴时]
36-
* 高级操作符 [认领 by 林晚]
30+
* 可选链 [认领 by 重鱼] [review by 玩家]
31+
* 类型转换 [认领 by 孟志昂] [review by 耿霄]
32+
* 嵌套类型 [认领 by 祁涛] [review by 袁鹏]
33+
* 扩展 [已完成 by 袁鹏] [review by 姜天意]
34+
* 协议 [认领 by 姜天意] [review by 重鱼]
35+
* 泛型 [已完成 by 晴时] [review by 隐若]
36+
* 高级操作符 [认领 by 林晚] [review by 周源]
3737
* 语言参考
3838
* 关于语言参考 [认领 by 筱强] [review by 懂象]
39-
* 词法结构 [认领 by 筱强][review by 懂象]
40-
* 类型 [认领 by 兰梦][review by 筱强]
41-
* 表达式 [认领 by 懂象][review by 兰梦]
42-
* 语句 [认领 by 玩家] [review by 隐若]
43-
* 声明 [认领 by 墨峰]
44-
* 属性 [认领 by 隐若]
39+
* 词法结构 [认领 by 筱强] [review by 懂象]
40+
* 类型 [认领 by 兰梦] [review by 筱强]
41+
* 表达式 [认领 by 懂象] [review by 兰梦]
42+
* 语句 [认领 by 玩家]
43+
* 声明 [认领 by 墨峰] [review by 龙刚]
44+
* 属性 [认领 by 隐若] [review by 姜天意]
4545
* 模式 [已完成 by 栖邀] [review by 紫溪]
4646
* 泛型参数 [认领 by 龙刚] [review by 墨峰]
47-
* 语法总结 [认领 by 无独]
47+
* 语法总结 [认领 by 无独] [review by 晗光]
4848

4949
# 分工
5050
* 西溪分会 10人 第一部分1-2章 第二部分1-8章

SUMMARY.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Summary
2+
3+
* 欢迎使用 Swift
4+
* [Swift 介绍](src/chapter1/01_About_Swift.md)
5+
* [Swift 初见](src/chapter1/02_A_Swift_Tour.md)
6+
* Swift 教程
7+
* [基础部分](src/chapter2/01_The_Basics.md)
8+
* [基本操作符](src/chapter2/02_Basic_Operators.md)
9+
* [字符串和字符](src/chapter2/03_Strings_and_Characters.md)
10+
* [集合类型](src/chapter2/04_Collection_Types.md)
11+
* [控制流](src/chapter2/05_Control_Flow.md)
12+
* [函数](src/chapter2/06_Functions.md)
13+
* [闭包](src/chapter2/07_Closures.md)
14+
* [枚举](src/chapter2/08_Enumerations.md)
15+
* [类和结构体](src/chapter2/09_Classes_and_Structures.md)
16+
* [属性](src/chapter2/10_Properties.md)
17+
* [方法](src/chapter2/11_Methods.md)
18+
* [下标](src/chapter2/12_Subscripts.md)
19+
* [继承](src/chapter2/13_Inheritance.md)
20+
* [构造过程](src/chapter2/14_Initialization.md)
21+
* [析构过程](src/chapter2/15_Deinitialization.md)
22+
* [自动引用计数](src/chapter2/16_Automatic_Reference_Counting.md)
23+
* [可选链](src/chapter2/17_Optional_Chaining.md)
24+
* [类型转换](src/chapter2/18_Type_Casting.md)
25+
* [嵌套类型](src/chapter2/19_Nested_Types.md)
26+
* [扩展](src/chapter2/20_Extensions.md)
27+
* [协议](src/chapter2/21_Protocols.md)
28+
* [泛型](src/chapter2/22_Generics.md)
29+
* [高级操作符](src/chapter2/23_Advanced_Operators.md)
30+
* 语言参考
31+
* [关于语言参考](src/chapter3/01_About_the_Language_Reference.md)
32+
* [词法结构](src/chapter3/02_Lexical_Structure.md)
33+
* [类型](src/chapter3/03_Types.md)
34+
* [表达式](src/chapter3/04_Expressions.md)
35+
* [语句](src/chapter3/05_Statements.md)
36+
* [声明](src/chapter3/06_Declarations.md)
37+
* [属性](src/chapter3/07_Attributes.md)
38+
* [模式](src/chapter3/08_Patterns.md)
39+
* [泛型参数](src/chapter3/09_Generic_Parameters_and_Arguments.md)
40+
* [语法总结](src/chapter3/10_Summary_of_the_Grammar.md)
41+

src/chapter2/01_The_Basics.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Swift是一个用于iOS和OS X平台开发的新的编程语言。尽管如此
77

88
Swift provides its own versions of all fundamental C and Objective-C types, including Int for integers; Double and Float for floating-point values; Bool for Boolean values; and String for textual data. Swift also provides powerful versions of the two primary collection types, Array and Dictionary, as described in Collection Types.
99

10-
Swift为所有C和Objective-C的基础类型提供了自己的版本,包括整数值Int,浮点值Double和Float,布尔值Bool,以及文本值String。Swift还提供了两个强大的常见集合类型,数组和字典,见[集合类型](link to 集合类型)。
10+
Swift为所有C和Objective-C的基础类型提供了自己的版本,包括整数值Int,浮点值Double和Float,布尔值Bool,以及文本值String。Swift还提供了两个强大的常见集合类型,数组和字典,见[集合类型](link)
1111

1212
Like C, Swift uses variables to store and refer to values by an identifying name. Swift also makes extensive use of variables whose values cannot be changed. These are known as constants, and are much more powerful than constants in C. Constants are used throughout Swift to make code safer and clearer in intent when you work with values that do not need to change.
1313

@@ -93,7 +93,7 @@ The colon in the declaration means “…of type…,” so the code above can be
9393

9494
The phrase “of type String” means “can store any String value.” Think of it as meaning “the type of thing” (or “the kind of thing”) that can be stored.
9595

96-
类型是”表示“可以储存任意的字符串类型的值”。可以把它想作是“一个事物的类型”它可以储存的。(Think of it as meaning “the type of thing” (or “the kind of thing”) that can be stored. 妈蛋这句真心不会翻啊……)
96+
类型是字符串”表示“可以储存任意的字符串类型的值”。可以把它想作是它可以储存的“一个事物的类型”
9797

9898
The welcomeMessage variable can now be set to any string value without error:
9999

@@ -149,7 +149,7 @@ You can change the value of an existing variable to another value of a compatibl
149149

150150
Unlike a variable, the value of a constant cannot be changed once it is set. Attempting to do so is reported as an error when your code is compiled:
151151

152-
和变量不同,常量的值一旦设定就不能更改。尝试这样做会导致代码编译时报错
152+
和变量不同,常量的值一旦设定就不能更改。尝试更改会导致代码编译时报错
153153

154154
let languageName = "Swift"
155155
languageName = "Swift++"
@@ -187,7 +187,7 @@ The println function can print more complex logging messages, in a similar manne
187187

188188
Swift uses string interpolation to include the name of a constant or variable as a placeholder in a longer string, and to prompt Swift to replace it with the current value of that constant or variable. Wrap the name in parentheses and escape it with a backslash before the opening parenthesis:
189189

190-
Swift使用字符串内插(string interpolation)的方式将常量或变量名以占位符的形式加入一个长的字符串中,并且提示Swift用常量或变量的当前值取代替它。将名字包裹在括号中并在前面加上反斜扛来转义。
190+
Swift使用字符串内插(string interpolation)的方式将常量或变量名以占位符的形式加入一个长的字符串中,并且提示Swift用常量或变量的当前值取代替它。书写格式是将名字包裹在括号中并在前面加上反斜扛来转义:
191191

192192
```
193193
println("The current value of friendlyWelcome is \(friendlyWelcome)")

0 commit comments

Comments
 (0)