swift语言_学习笔记
2017-09-18 18:54
465 查看
About Swift
变量初始化
数组下标越界检查
整数溢出检查
optioanl确保明确处理无值
内存自动管理
错误处理允许控制unexpected failures
Version Compatibility
Substring operations return an instance of the Substring type, instead of String.
The @objc attribute is implicitly added in fewer places.
Extensions to a type in the same file can access that type’s private members.
A Swift Tour
不需要import library
不需要main函数
statement之后不需要分号
常量必须初始化
更多内容在playground里面……
变量初始化
数组下标越界检查
整数溢出检查
optioanl确保明确处理无值
内存自动管理
错误处理允许控制unexpected failures
Version Compatibility
Substring operations return an instance of the Substring type, instead of String.
The @objc attribute is implicitly added in fewer places.
Extensions to a type in the same file can access that type’s private members.
A Swift Tour
不需要import library
不需要main函数
statement之后不需要分号
常量必须初始化
更多内容在playground里面……
相关文章推荐
- swift语言的学习笔记五(线程)
- swift语言的学习笔记九(OC与Swift混编)
- swift语言的学习笔记十一(willSet与didSet)
- Swift学习笔记一:语言特性
- swift语言学习笔记(4)
- swift语言的学习笔记十二(willSet与didSet)
- ios学习笔记图片+图片解释(c语言 oc语言 ios控件 ios小项目 ios小功能 swift都有而且笔记完整喔)
- swift语言的学习笔记九(OC与Swift混编)
- swift语言的学习笔记十(block)
- swift语言的学习笔记十一(performSelector)
- Swift语言学习笔记(4)
- swift语言的学习笔记四-2(对上一节有些遗留进行处理)
- swift语言学习笔记(1)
- swift语言的学习笔记五(线程)
- Swift语言学习笔记(六)
- Swift语言学习笔记(七)
- swift 学习笔记(2)-可变类型
- [HeadFrist-HTMLCSS学习笔记][第一章Web语言:开始了解HTML]
- R 语言学习笔记(三)
- 第9篇:swift语言笔记:继承关键点