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

[Automatic Reference Counting] 翻訳の改善 #353

Merged
merged 5 commits into from
Aug 24, 2022
Merged

Conversation

t-ae
Copy link
Collaborator

@t-ae t-ae commented Aug 23, 2022

細かい改善です。

Reference cycle の翻訳として循環参照と参照循環が混在しており、前者のほうが一般的なのでそちらに統一しました。

@@ -316,7 +318,7 @@ john = nil

### <a id="unowned-optional-references">オプショナル値への非所有参照\(Unowned Optional References\)</a>

クラスへのオプショナルの参照を `unowned` とマークできます。ARC 所有権モデルに関しては、オプショナルの非所有参照と弱参照の両方を同じコンテキストで使用できます。違いは、オプショナルの非所有参照を使用する場合、それが常に有効なオブジェクトを参照しているのか、`nil` が設定されているのかを確認する責任があることです
クラスへのオプショナルの参照を `unowned` とマークできます。ARC 所有権モデルの観点から言うと、オプショナルの非所有参照と弱参照は共に同じコンテキストで使用できます。弱参照との違いは、オプショナルの非所有参照を使用する場合、それが有効なオブジェクトを参照しているか、`nil` が設定されているか、常にどちらかの状態を維持する責任があることです
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原文:

You can mark an optional reference to a class as unowned. In terms of the ARC ownership model, an unowned optional reference and a weak reference can both be used in the same contexts. The difference is that when you use an unowned optional reference, you’re responsible for making sure it always refers to a valid object or is set to nil.

意訳っぽくなってしまいましたが、文意が間違っていないか確認していただきたいです。

Copy link
Owner

@stzn stzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!Reference cycleをREADMEの英和対応表にも追加していただけると嬉しいですmm

Copy link
Owner

@stzn stzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMです👍🏻ありがとうございます!他にご意見なければ夜マージします。

@stzn stzn merged commit f6aadef into stzn:master Aug 24, 2022
@t-ae t-ae deleted the improve-arc branch August 24, 2022 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants