标签:
1.swift 最新关键字和符号参考:https://developer.apple.com/library/mac/documentation/Swift/Conceptual/Swift_Programming_Language/LexicalStructure.html#//apple_ref/doc/uid/TP40014097-CH30-ID410
2.部分关键字解释参考:http://www.cnblogs.com/iCocos/p/4631634.html
3.其他关键字如:
用于递归枚举的indirect:http://wiki.jikexueyuan.com/project/swift/chapter2/08_Enumerations.html
用于定义运算级别的operator,precedence,associativity,left,right,none:https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/AdvancedOperators.html#//apple_ref/doc/uid/TP40014097-CH27-XID_65
用于反射机制的dynamicType:http://ericasadun.com/2014/06/16/swift-more-than-you-probably-want-to-know-about-type-introspection/
用于类似java do while循环的repeat关键字:http://www.runoob.com/swift/swift-repeat-while-loop.html
4.相关其他参考:
最后不得不提一些swift的特性:
1.支持区间运算符
2.支持闭包
3.支持下标操作
4.支持序列
5.支持where子句
6.支持unicode变量名和字符.数字可以加下划线区分长度
8.可选绑定,动态绑定,可选链
9.try do catch throws throw 组成的更便捷的异常处理
10.guard简化代码,和refer组合更强大
11.Set集合
12.可无缝的将oc版的cocoa框架转为swift对象,例如NSSString,NSMutableArray.
13.协议和结构体,元组
标签:
原文地址:http://www.cnblogs.com/xuezizhenchengxuyuan/p/5029429.html