-
Notifications
You must be signed in to change notification settings - Fork 72
5.9. FFI #78
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
5.9. FFI #78
Conversation
|
@KeenS 翻訳完了しました。 |
1.6/ja/book/ffi.md
Outdated
| <!-- When declaring the argument types to a foreign function, the Rust compiler can --> | ||
| <!-- not check if the declaration is correct, so specifying it correctly is part of --> | ||
| <!-- keeping the binding correct at runtime. --> | ||
| 他言語関数について引数の型を宣言するとき、Rustのコンパイラはその宣言が正しいかどうかを確認することができません。それを正しく指定することは、実行時のバインディングを正しく保つことの一部です。 |
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.
それを正しく指定することは、実行時のバインディングを正しく保つことの一部です。
原文が読み解きづらいので自信ないのですがやや原文とずれている気がします。
言いたいことは「引数の型のチェックはコンパイラでは出来ないからバインディングを書いた人に全ての責任がある、正しく書けたかは実行時に正しい振舞いをするかでしか分からない。なので(普通のコードを正しく実装するのがコンパイラではなく実装者の責任であるように)バインディングを書く時には引数の型を正しく書くことも求められる」の意味だと思うので
「なのでバインディングが正しく動くためには引数の型を正しく指定してあげる必要があります」
などと意訳してはどうでしょうか。
|
色々コメントしました。長いかつ英文に癖があってつらかったと思いますがお疲れ様です。 それと対訳表がコンフリクトしたようなので解決お願いします。 |
Conflicts: TranslationTable.md
|
@KeenS ありがとうございます。 |
|
お疲れ様です。マージします。 |
No description provided.