Merge pull request #452 from vincent4j/gh-pages
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
# 2.0 新的开始
|
||||
|
||||
> Swift 兴趣交流群:`131595168`, `146932759`, `151336833`, `153549217`. **加入一个群即可,请勿重复添加**
|
||||
|
||||
> <a target='_blank' href="http://swiftist.org">Swift 开发者社区</a>
|
||||
@ -9,8 +11,6 @@
|
||||
<!-- -->
|
||||
> 如果您觉得这个项目不错,请<a target='_blank' href="https://github.com/numbbbbb/the-swift-programming-language-in-chinese">点击Star一下</a>,您的支持是我们最大的动力。
|
||||
|
||||
# 2.0 新的开始
|
||||
|
||||
## 1
|
||||
|
||||
开源项目完成难,维护更难。
|
||||
@ -51,28 +51,28 @@
|
||||
|
||||
下次你再打开这篇文档,可以多看看那些列在最上方的ID,哪怕不去follow和star,只是看一眼就好。他们的所有努力和付出,就存在于这短暂的一瞥中。
|
||||
|
||||
Swift 2.0 参与者名单(按照章节顺序):
|
||||
- [xtymichael](https://github.com/xtymichael)
|
||||
- [AlanMelody](https://github.com/AlanMelody)
|
||||
- [DianQK](https://github.com/DianQK)
|
||||
- [dreamkidd](https://github.com/dreamkidd)
|
||||
- [100mango](https://github.com/100mango)
|
||||
- [futantan](https://github.com/futantan)
|
||||
- [SkyJean](https://github.com/SkyJean)
|
||||
- [yangsiy](https://github.com/yangsiy)
|
||||
- [shanksyang](https://github.com/shanksyang)
|
||||
- [chenmingbiao](https://github.com/chenmingbiao)
|
||||
- [Channe](https://github.com/Channe)
|
||||
- [lyojo](https://github.com/lyojo)
|
||||
- [SergioChan](https://github.com/SergioChan)
|
||||
- [mmoaay](https://github.com/mmoaay)
|
||||
- [buginux](https://github.com/buginux)
|
||||
- [KYawn](https://github.com/KYawn)
|
||||
- [EudeMorgen](https://github.com/EudeMorgen)
|
||||
- [littledogboy](https://github.com/littledogboy)
|
||||
- [Lenhoon](https://github.com/Lenhoon)
|
||||
- [ray16897188](https://github.com/ray16897188)
|
||||
- [wardenNScaiyi](https://github.com/wardenNScaiyi)
|
||||
- [miaosiqi](https://github.com/miaosiqi)
|
||||
Swift 2.0 参与者名单(按照章节顺序):
|
||||
- [xtymichael](https://github.com/xtymichael)
|
||||
- [AlanMelody](https://github.com/AlanMelody)
|
||||
- [DianQK](https://github.com/DianQK)
|
||||
- [dreamkidd](https://github.com/dreamkidd)
|
||||
- [100mango](https://github.com/100mango)
|
||||
- [futantan](https://github.com/futantan)
|
||||
- [SkyJean](https://github.com/SkyJean)
|
||||
- [yangsiy](https://github.com/yangsiy)
|
||||
- [shanksyang](https://github.com/shanksyang)
|
||||
- [chenmingbiao](https://github.com/chenmingbiao)
|
||||
- [Channe](https://github.com/Channe)
|
||||
- [lyojo](https://github.com/lyojo)
|
||||
- [SergioChan](https://github.com/SergioChan)
|
||||
- [mmoaay](https://github.com/mmoaay)
|
||||
- [buginux](https://github.com/buginux)
|
||||
- [KYawn](https://github.com/KYawn)
|
||||
- [EudeMorgen](https://github.com/EudeMorgen)
|
||||
- [littledogboy](https://github.com/littledogboy)
|
||||
- [Lenhoon](https://github.com/Lenhoon)
|
||||
- [ray16897188](https://github.com/ray16897188)
|
||||
- [wardenNScaiyi](https://github.com/wardenNScaiyi)
|
||||
- [miaosiqi](https://github.com/miaosiqi)
|
||||
|
||||
最后,感谢<a target='_blank' href="http://wiki.jikexueyuan.com/">极客学院</a>提供的wiki系统,在国内访问起来速度很快,优化后的样式看起来也更舒服。
|
||||
@ -31,7 +31,7 @@
|
||||
* [泛型](chapter2/23_Generics.md)
|
||||
* [权限控制](chapter2/24_Access_Control.md)
|
||||
* [高级操作符](chapter2/25_Advanced_Operators.md)
|
||||
* [语言参考](chapter3/chapter3.md)
|
||||
* 语言参考
|
||||
* [关于语言参考](chapter3/01_About_the_Language_Reference.md)
|
||||
* [词法结构](chapter3/02_Lexical_Structure.md)
|
||||
* [类型](chapter3/03_Types.md)
|
||||
@ -42,7 +42,7 @@
|
||||
* [模式](chapter3/07_Patterns.md)
|
||||
* [泛型参数](chapter3/08_Generic_Parameters_and_Arguments.md)
|
||||
* [语法总结](chapter3/09_Summary_of_the_Grammar.md)
|
||||
* [苹果官方Blog官方翻译](chapter4/chapter4.md)
|
||||
* 苹果官方Blog官方翻译
|
||||
* [Access Control 权限控制的黑与白](chapter4/01_Access_Control.md)
|
||||
* [造个类型不是梦-白话Swift类型创建](chapter4/02_Type_Custom.md)
|
||||
* [WWDC里面的那个“大炮打气球”](chapter4/03_Ballons.md)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 关于 Swift
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[numbbbbb](https://github.com/numbbbbb)
|
||||
> 校对:[yeahdongcn](https://github.com/yeahdongcn)
|
||||
@ -5,10 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[xtymichael](https://github.com/xtymichael)
|
||||
|
||||
|
||||
# 关于 Swift
|
||||
-----------------
|
||||
|
||||
Swift 是一种新的编程语言,用于编写 iOS,OS X 和 watchOS应用程序。Swift 结合了 C 和 Objective-C 的优点并且不受 C 兼容性的限制。Swift 采用安全的编程模式并添加了很多新特性,这将使编程更简单,更灵活,也更有趣。Swift 是基于成熟而且倍受喜爱的 Cocoa 和 Cocoa Touch 框架,它的降临将重新定义软件开发。
|
||||
|
||||
Swift 的开发从很久之前就开始了。为了给 Swift 打好基础,苹果公司改进了编译器,调试器和框架结构。我们使用自动引用计数(Automatic Reference Counting, ARC)来简化内存管理。我们在 Foundation 和 Cocoa 的基础上构建框架栈使其完全现代化和标准化。
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
# Swift 初见
|
||||
|
||||
---
|
||||
|
||||
> 1.0
|
||||
> 翻译:[numbbbbb](https://github.com/numbbbbb)
|
||||
> 校对:[shinyzhu](https://github.com/shinyzhu), [stanzhai](https://github.com/stanzhai)
|
||||
@ -5,10 +9,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[xtymichael](https://github.com/xtymichael)
|
||||
|
||||
# Swift 初见
|
||||
|
||||
---
|
||||
|
||||
本页内容包括:
|
||||
|
||||
- [简单值(Simple Values)](#simple_values)
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
> 翻译:[成都老码团队翻译组-Arya](http://weibo.com/littlekok/)
|
||||
> 校对:[成都老码团队翻译组-Oberyn](http://weibo.com/u/5241713117)
|
||||
|
||||
# Swift 版本历史记录
|
||||
|
||||
---
|
||||
|
||||
> 翻译:[成都老码团队翻译组-Arya](http://weibo.com/littlekok/)
|
||||
> 校对:[成都老码团队翻译组-Oberyn](http://weibo.com/u/5241713117)
|
||||
|
||||
本页内容包括:
|
||||
|
||||
- [XCode6.4 Beta Swift语法文档更新](#xcode6_4_Beta)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 基础部分
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[numbbbbb](https://github.com/numbbbbb), [lyuka](https://github.com/lyuka), [JaySurplus](https://github.com/JaySurplus)
|
||||
> 校对:[lslxdx](https://github.com/lslxdx)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[xtymichael](https://github.com/xtymichael)
|
||||
|
||||
# 基础部分
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [常量和变量](#constants_and_variables)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 基本运算符
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[XieLingWang](https://github.com/xielingwang)
|
||||
> 校对:[EvilCome](https://github.com/Evilcome)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[JackAlan](https://github.com/AlanMelody)
|
||||
|
||||
# 基本运算符
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [术语](#terminology)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 字符串和字符(Strings and Characters)
|
||||
---
|
||||
|
||||
> 1.0
|
||||
> 翻译:[wh1100717](https://github.com/wh1100717)
|
||||
> 校对:[Hawstein](https://github.com/Hawstein)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[DianQK](https://github.com/DianQK)
|
||||
|
||||
# 字符串和字符(Strings and Characters)
|
||||
---
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [字符串字面量](#string_literals)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 集合类型 (Collection Types)
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[zqp](https://github.com/zqp)
|
||||
> 校对:[shinyzhu](https://github.com/shinyzhu), [stanzhai](https://github.com/stanzhai), [feiin](https://github.com/feiin)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[JackAlan](https://github.com/AlanMelody)
|
||||
|
||||
# 集合类型 (Collection Types)
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [集合的可变性(Mutability of Collections)](#mutability_of_collections)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 控制流
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[vclwei](https://github.com/vclwei), [coverxit](https://github.com/coverxit), [NicePiao](https://github.com/NicePiao)
|
||||
> 校对:[coverxit](https://github.com/coverxit), [stanzhai](https://github.com/stanzhai)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[JackAlan](https://github.com/AlanMelody)
|
||||
|
||||
# 控制流
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [For 循环](#for_loops)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 函数(Functions)
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[honghaoz](https://github.com/honghaoz)
|
||||
> 校对:[LunaticM](https://github.com/LunaticM)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[dreamkidd](https://github.com/dreamkidd)
|
||||
|
||||
# 函数(Functions)
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [函数定义与调用(Defining and Calling Functions)](#Defining_and_Calling_Functions)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 闭包(Closures)
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[wh1100717](https://github.com/wh1100717)
|
||||
> 校对:[lyuka](https://github.com/lyuka)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[100mango](https://github.com/100mango)
|
||||
|
||||
# 闭包(Closures)
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [闭包表达式(Closure Expressions)](#closure_expressions)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 枚举(Enumerations)
|
||||
---
|
||||
|
||||
> 1.0
|
||||
> 翻译:[yankuangshi](https://github.com/yankuangshi)
|
||||
> 校对:[shinyzhu](https://github.com/shinyzhu)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[futantan](https://github.com/futantan)
|
||||
|
||||
# 枚举(Enumerations)
|
||||
---
|
||||
|
||||
本页内容包含:
|
||||
|
||||
- [枚举语法(Enumeration Syntax)](#enumeration_syntax)
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
# 类和结构体
|
||||
|
||||
> 1.0
|
||||
> 翻译:[JaySurplus](https://github.com/JaySurplus)
|
||||
> 校对:[sg552](https://github.com/sg552)
|
||||
@ -5,8 +7,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[SkyJean](https://github.com/SkyJean)
|
||||
|
||||
# 类和结构体
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [类和结构体对比](#comparing_classes_and_structures)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 属性 (Properties)
|
||||
---
|
||||
|
||||
> 1.0
|
||||
> 翻译:[shinyzhu](https://github.com/shinyzhu)
|
||||
> 校对:[pp-prog](https://github.com/pp-prog) [yangsiy](https://github.com/yangsiy)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[yangsiy](https://github.com/yangsiy)
|
||||
|
||||
# 属性 (Properties)
|
||||
---
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [存储属性(Stored Properties)](#stored_properties)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 方法(Methods)
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[pp-prog](https://github.com/pp-prog)
|
||||
> 校对:[zqp](https://github.com/zqp)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[DianQK](https://github.com/DianQK)
|
||||
|
||||
# 方法(Methods)
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [实例方法(Instance Methods)](#instance_methods)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 下标脚本(Subscripts)
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[siemenliu](https://github.com/siemenliu)
|
||||
> 校对:[zq54zquan](https://github.com/zq54zquan)
|
||||
@ -5,10 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[shanksyang](https://github.com/shanksyang)
|
||||
|
||||
|
||||
# 下标脚本(Subscripts)
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [下标脚本语法](#subscript_syntax)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 继承(Inheritance)
|
||||
-------------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[Hawstein](https://github.com/Hawstein)
|
||||
> 校对:[menlongsheng](https://github.com/menlongsheng)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[shanksyang](https://github.com/shanksyang)
|
||||
|
||||
# 继承(Inheritance)
|
||||
-------------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [定义一个基类(Base class)](#defining_a_base_class)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 构造过程(Initialization)
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[lifedim](https://github.com/lifedim)
|
||||
> 校对:[lifedim](https://github.com/lifedim)
|
||||
@ -5,10 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[chenmingbiao](https://github.com/chenmingbiao)
|
||||
|
||||
# 构造过程(Initialization)
|
||||
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [存储型属性的初始赋值](#setting_initial_values_for_stored_properties)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 析构过程(Deinitialization)
|
||||
---------------------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[bruce0505](https://github.com/bruce0505)
|
||||
> 校对:[fd5788](https://github.com/fd5788)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[chenmingbiao](https://github.com/chenmingbiao)
|
||||
|
||||
# 析构过程(Deinitialization)
|
||||
---------------------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [析构过程原理](#how_deinitialization_works)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 自动引用计数
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[TimothyYe](https://github.com/TimothyYe)
|
||||
> 校对:[Hawstein](https://github.com/Hawstein)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[Channe](https://github.com/Channe)
|
||||
|
||||
# 自动引用计数
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [自动引用计数的工作机制](#how_arc_works)
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
# 可空链式调用
|
||||
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[Jasonbroker](https://github.com/Jasonbroker)
|
||||
@ -7,7 +9,7 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[lyojo](https://github.com/lyojo)
|
||||
|
||||
-----------------
|
||||
|
||||
可空链式调用(Optional Chaining)是一种可以请求和调用属性、方法及下标的过程,它的可空性体现于请求或调用的目标当前可能为空(nil)。如果可空的目标有值,那么调用就会成功;如果选择的目标为空(nil),那么这种调用将返回空(nil)。多个连续的调用可以被链接在一起形成一个调用链,如果其中任何一个节点为空(nil)将导致整个链调用失败。
|
||||
|
||||
>
|
||||
|
||||
@ -1,8 +1,10 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[lyojo](https://github.com/lyojo)
|
||||
|
||||
# 错误处理
|
||||
-----------------
|
||||
|
||||
> 2.0
|
||||
> 翻译+校对:[lyojo](https://github.com/lyojo)
|
||||
|
||||
错误处理是响应错误以及从错误中返回的过程。swift提供第一类错误支持,包括在运行时抛出,捕获,传送和控制可回收错误。
|
||||
|
||||
一些函数和方法不能总保证能够执行所有代码或产生有用的输出。可空类型用来表示值可能为空,但是当函数执行失败的事后,可空通常可以用来确定执行失败的原因,因此代码可以正确地响应失败。在Swift中,这叫做抛出函数或者抛出方法。
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 类型转换(Type Casting)
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[xiehurricane](https://github.com/xiehurricane)
|
||||
> 校对:[happyming](https://github.com/happyming)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[yangsiy](https://github.com/yangsiy)
|
||||
|
||||
# 类型转换(Type Casting)
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [定义一个类层次作为例子](#defining_a_class_hierarchy_for_type_casting)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 嵌套类型
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[Lin-H](https://github.com/Lin-H)
|
||||
> 校对:[shinyzhu](https://github.com/shinyzhu)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[SergioChan](https://github.com/SergioChan)
|
||||
|
||||
# 嵌套类型
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [嵌套类型实例](#nested_types_in_action)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 扩展(Extensions)
|
||||
----
|
||||
|
||||
> 1.0
|
||||
> 翻译:[lyuka](https://github.com/lyuka)
|
||||
> 校对:[Hawstein](https://github.com/Hawstein)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[shanksyang](https://github.com/shanksyang)
|
||||
|
||||
#扩展(Extensions)
|
||||
----
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [扩展语法](#extension_syntax)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 协议
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[geek5nan](https://github.com/geek5nan)
|
||||
> 校对:[dabing1022](https://github.com/dabing1022)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[futantan](https://github.com/futantan)
|
||||
|
||||
# 协议
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [协议的语法(Protocol Syntax)](#protocol_syntax)
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
# 泛型
|
||||
|
||||
------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[takalard](https://github.com/takalard)
|
||||
> 校对:[lifedim](https://github.com/lifedim)
|
||||
@ -5,10 +9,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对: [SergioChan](https://github.com/SergioChan)
|
||||
|
||||
# 泛型
|
||||
|
||||
------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [泛型所解决的问题](#the_problem_that_generics_solve)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 访问控制
|
||||
------------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[JaceFu](http://www.devtalking.com/)
|
||||
> 校对:[ChildhoodAndy](http://childhood.logdown.com)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[mmoaay](https://github.com/mmoaay)
|
||||
|
||||
# 访问控制
|
||||
------------------
|
||||
|
||||
本页内容包括:
|
||||
|
||||
- [模块和源文件](#modules_and_source_files)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 高级运算符
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[xielingwang](https://github.com/xielingwang)
|
||||
> 校对:[numbbbbb](https://github.com/numbbbbb)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[buginux](https://github.com/buginux)
|
||||
|
||||
# 高级运算符
|
||||
-----------------
|
||||
|
||||
本页内容包括:
|
||||
|
||||
- [位运算符](#bitwise_operators)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 关于语言附注
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[dabing1022](https://github.com/dabing1022)
|
||||
> 校对:[numbbbbb](https://github.com/numbbbbb)
|
||||
@ -5,10 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[KYawn](https://github.com/KYawn)
|
||||
|
||||
|
||||
# 关于语言附注
|
||||
-----------------
|
||||
|
||||
本页内容包括:
|
||||
|
||||
- [如何阅读语法](#how_to_read_the_grammar)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 词法结构
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[superkam](https://github.com/superkam)
|
||||
> 校对:[numbbbbb](https://github.com/numbbbbb)
|
||||
@ -5,8 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[buginux]([KYawn](https://github.com/buginux)
|
||||
|
||||
# 词法结构
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 类型(Types)
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[lyuka](https://github.com/lyuka)
|
||||
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[EudeMorgen](https://github.com/EudeMorgen)
|
||||
|
||||
# 类型(Types)
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [类型注解(Type Annotation)](#type_annotation)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 表达式(Expressions)
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[sg552](https://github.com/sg552)
|
||||
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[EudeMorgen](https://github.com/EudeMorgen)
|
||||
|
||||
# 表达式(Expressions)
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [前缀表达式(Prefix Expressions)](#prefix_expressions)
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
<a name="declarations"></a>
|
||||
# 声明
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[marsprince](https://github.com/marsprince) [Lenhoon](https://github.com/marsprince)[(微博)](http://www.weibo.com/lenhoon)
|
||||
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
|
||||
@ -5,10 +9,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[Lenhoon](https://github.com/Lenhoon)
|
||||
|
||||
<a name="declarations"></a>
|
||||
# 声明
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [顶级代码](#top-level_code)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 特性
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[Hawstein](https://github.com/Hawstein)
|
||||
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[KYawn](https://github.com/KYawn)
|
||||
|
||||
# 特性
|
||||
-----------------
|
||||
|
||||
本页内容包括:
|
||||
|
||||
- [声明特性](#declaration_attributes)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 模式(Patterns)
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[honghaoz](https://github.com/honghaoz)
|
||||
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[ray16897188](https://github.com/ray16897188)
|
||||
|
||||
# 模式(Patterns)
|
||||
-----------------
|
||||
|
||||
本页内容包括:
|
||||
|
||||
- [通配符模式(Wildcard Pattern)](#wildcard_pattern)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 泛型参数
|
||||
---------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[fd5788](https://github.com/fd5788)
|
||||
> 校对:[yankuangshi](https://github.com/yankuangshi), [stanzhai](https://github.com/stanzhai)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[wardenNScaiyi](https:github.com/wardenNScaiyi)
|
||||
|
||||
# 泛型参数
|
||||
---------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [泛型形参子句](#generic_parameter)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
# 语法总结
|
||||
-----
|
||||
|
||||
> 1.0
|
||||
> 翻译:[stanzhai](https://github.com/stanzhai)
|
||||
> 校对:[xielingwang](https://github.com/xielingwang)
|
||||
@ -5,9 +8,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[miaosiqi](https://github.com/miaosiqi)
|
||||
|
||||
# 语法总结
|
||||
_________________
|
||||
|
||||
本页包含内容:
|
||||
|
||||
* [语句(Statements)](#statements)
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
<a name="statement_statements"></a>
|
||||
# 语句
|
||||
-----------------
|
||||
|
||||
> 1.0
|
||||
> 翻译:[coverxit](https://github.com/coverxit)
|
||||
> 校对:[numbbbbb](https://github.com/numbbbbb), [coverxit](https://github.com/coverxit), [stanzhai](https://github.com/stanzhai),
|
||||
@ -5,10 +9,6 @@
|
||||
> 2.0
|
||||
> 翻译+校对:[littledogboy](https://github.com/littledogboy)
|
||||
|
||||
<a name="statement_statements"></a>
|
||||
# 语句
|
||||
-----------------
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [循环语句](#loop_statements)
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# Access Control 权限控制的黑与白
|
||||
|
||||
> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/)
|
||||
> 校对:[老码团队翻译组-Oberyn](http://weibo.com/u/5241713117)
|
||||
|
||||
# Access Control 权限控制的黑与白
|
||||
|
||||
如果您之前没有接触过权限控制,先来听一个小故事:
|
||||
|
||||
> 小明是五道口工业学院的一个大一新生,最近他有点烦恼,因为同屋经常用他的热水壶,好像那是自己家的一样,可是碍于同学情面,又不好意思说。直到有一天,他和学姐小K吐槽。
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
> 翻译:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117)
|
||||
> 校对:[老码团队翻译组-Oberyn](http://weibo.com/u/5241713117)
|
||||
|
||||
# 造个类型不是梦-白话Swift类型创建
|
||||
-----------------
|
||||
|
||||
> 翻译:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117)
|
||||
> 校对:[老码团队翻译组-Oberyn](http://weibo.com/u/5241713117)
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [自定义原型](#prototype)
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# WWDC里面的那个“大炮打气球”
|
||||
|
||||
> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/)
|
||||
> 校对:[老码团队翻译组-](Jame)
|
||||
|
||||
# WWDC里面的那个“大炮打气球”
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
> 翻译:[老码团队翻译组-Relly](http://weibo.com/penguinliong/)
|
||||
> 校对:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117)
|
||||
|
||||
# Swift与C语言指针友好合作
|
||||
-----------------
|
||||
|
||||
> 翻译:[老码团队翻译组-Relly](http://weibo.com/penguinliong/)
|
||||
> 校对:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117)
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [用以输入/输出的参数指针](#inout-para-pointer)
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/)
|
||||
> 校对:[老码团队翻译组-Jame](http://weibo.com/u/5241713117)
|
||||
|
||||
# Swift里的值类型与引用类型
|
||||
-----------------
|
||||
|
||||
> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/)
|
||||
> 校对:[老码团队翻译组-Jame](http://weibo.com/u/5241713117)
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [值类型与引用类型的区别](#difference-two)
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/)
|
||||
> 校对:[老码团队翻译组-Jame](http://weibo.com/u/5241713117)
|
||||
|
||||
# 访问控制和protected
|
||||
-----------------
|
||||
|
||||
> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/)
|
||||
> 校对:[老码团队翻译组-Jame](http://weibo.com/u/5241713117)
|
||||
|
||||
原文再续,书折第一回。
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
> 翻译:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117)
|
||||
> 校对:[老码团队翻译组-Ayra](http://weibo.com/littlekok/)
|
||||
|
||||
# 可选类型完美解决占位问题
|
||||
-----------------
|
||||
|
||||
> 翻译:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117)
|
||||
> 校对:[老码团队翻译组-Ayra](http://weibo.com/littlekok/)
|
||||
|
||||
本页包含内容:
|
||||
|
||||
- [为Dictionary增加objectsForKeys函数](#add-function)
|
||||
|
||||
Reference in New Issue
Block a user