- 变量初始化
- 数组下标越界检查
- 整数溢出检查
- optioanl确保明确处理无值
- 内存自动管理
- 错误处理允许控制unexpected failures
- 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.
不需要import library
不需要main函数
statement之后不需要分号
常量必须初始化
更多内容在playground里面……