-
Notifications
You must be signed in to change notification settings - Fork 72
4.35. Raw Pointers #68
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
Conversation
@KeenS 暫定訳完了しました、宜しくお願いします。 |
there are two types that are extra-special. Much of Rust’s safety comes from | ||
compile-time checks, but raw pointers don’t have such guarantees, and are | ||
[unsafe][unsafe] to use. | ||
[unsafe][unsafe] to use. --> | ||
Rustは標準ライブラリに異なるスマートポインタの型を幾つか用意していますが、更に特殊な型が2つあります。Rustの安全性の多くはコンパイル時のチェックに起因するものですが、生ポインタや [unsafe][unsafe] を使用するとそういった保証が得られません。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
起因
「原因」というよりは「おかげで」の意味だと思うので「〜に依るもの」「〜のおかげ」くらいかと思います。
一言で言い表わす日本語がありそうで出てこない…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rustの安全性の多くはコンパイル時のチェックに起因するものですが、生ポインタや [unsafe][unsafe] を使用するとそういった保証が得られません。
「生ポインタはコンパイルチェックされないので使うとunsafeです」ということを言っていると思います。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
「Rustの安全性の多くはコンパイル時のチェックに依るものですが、生ポインタを用いるとそういった保証が得られないため [unsafe][unsafe] です。」でどうでしょうか。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
素晴しい訳ですね。良いと思います。
@Nnwww 何点かコメントしました。確認宜しくお願いします。 |
@KeenS 反映しました、ご確認お願いします。 |
相談見落してました。
元のドキュメントの著者が不要と判断して載ってないと思うので最低限で良いと思います。
そのまま訳すとすれば「ライフタイムがどのような形でも出てこない」などでしょうが意訳の形でも十分意図は伝わるので問題ないと思います。 |
@KeenS ありがとうございます、このままでお願いします。 |
not being allowed directly through a `*const T`. --> | ||
- `&` と異なり、ライフタイムの機能が無効化されるため、コンパイラはダングリングポインタを推論できない | ||
- また、 `*const T` を直接介した変更は拒むが、それ以外のエイリアシングやミュータビリティに関する保証はない | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[markdown]
ごめんなさい、レビュー漏れてました。リストアイテムの間にコメントを挟むと正しくレンダリングされないのでこちら、リスト全体をコメントアウトしてその下に訳を置くようお願いします。
@Nnwww |
@KeenS 修正しました、宜しくお願いします。 |
ありがとうございます、お手数お掛けしました。確認しましたのでマージします。 |
移転開始
相談内容
Rust言語機能外の注釈が必要か否か
レイヤが低い話になると増えてくる印象があります
用語は調べれば分かるので、注釈は原文読んでも分かりにくい言い回しの補完のみにしたいのですが宜しいでしょうか?
Line 37 "lack any form of lifetimes"の意訳
「ライフタイムの形式が欠如」では日本語的ではないと判断し「ライフタイムの機能が無効化される」と翻訳
進捗状況