Skip to content

4.10 Mutability #83

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

Merged
merged 4 commits into from
Feb 22, 2016
Merged

4.10 Mutability #83

merged 4 commits into from
Feb 22, 2016

Conversation

yohhoy
Copy link
Contributor

@yohhoy yohhoy commented Feb 12, 2016

4.10 Mutability に着手。

  • Interior/Exterior訳語決定と対訳表への追加
    • "内側の"/"外側の"として仮追加
  • レビューコメント反映

@keiichiw keiichiw mentioned this pull request Feb 15, 2016
@yohhoy yohhoy changed the title [WIP] 4.10 Mutability 4.10 Mutability Feb 20, 2016
@yohhoy
Copy link
Contributor Author

yohhoy commented Feb 20, 2016

@KeenS 確認の程、宜しくお願いします。

<!-- bind `y` to something else (`y = &mut z`), but you can mutate the thing that’s -->
<!-- bound to `y` (`*y = 5`). A subtle distinction. -->
`y` はミュータブル参照へのイミュータブルな束縛であり、 `y` を他の束縛に変える(`y = &mut z`)ことはできません。
しかし、`y` に束縛されているものを変化させること(`*y = 5`)は可能です。
Copy link
Member

Choose a reason for hiding this comment

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

"A subtle distinction." の訳もお願いします。

@tatsuya6502
Copy link
Member

レビュー終わりました。1点だけコメントしましたので、ご対応をお願いします。

<!-- the structure itself. It’s not user facing. For this reason, it hands out `&T` -->
<!-- with `clone()`. If it handed out `&mut T`s, though, that would be a problem. -->
つまり、「イミュータビリティ」の真の定義はこうです: これは2箇所から指されても安全ですか?
`Arc<T>` の例では、イエス: 変更は完全にそれ自身の構造の内側で行われます。ユーザ向いではありません。
Copy link
Contributor

Choose a reason for hiding this comment

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

「ユーザ向いではありません」ではちょっと分かり難いと思います。
変更が内側で行われるので、「ユーザからは見えません」くらいでしょうか

@yohhoy
Copy link
Contributor Author

yohhoy commented Feb 22, 2016

@tatsuya6502 レビューありがとうございます。コメント反映しました。(cc: @ykomatsu )

@tatsuya6502
Copy link
Member

マージします。おつかれさまでした!

tatsuya6502 added a commit that referenced this pull request Feb 22, 2016
@tatsuya6502 tatsuya6502 merged commit e741b9e into rust-lang-ja:master Feb 22, 2016
@yohhoy yohhoy deleted the mutability branch February 24, 2016 14:10
@tatsuya6502 tatsuya6502 modified the milestone: 1.6 Apr 28, 2016
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.

3 participants