Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 2017-09-11-Swift-4-新特性.md #362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _posts/2017-09-11-Swift-4-新特性.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tags:

### private 权限扩大

在 Swift 4 中,`extension` 可以读取 `private` 变量了。
`\sigma`在 Swift 4 中,`extension` 可以读取 `private` 变量了。

Swift 3 中,如果将主体函数的变量定义为 `private`,则其 `extension` 无法读取此变量,必须将其改为 `filePrivate` 才可以。

Expand Down Expand Up @@ -169,4 +169,4 @@ numbers.swapAt(0,1)

其他改动如:**新的整数协议**、**泛型下标**、**NSNumber bridging**等

可以参考:[whats new in swift4](https://github.com/ole/whats-new-in-swift-4)
可以参考:[whats new in swift4](https://github.com/ole/whats-new-in-swift-4)