-
Notifications
You must be signed in to change notification settings - Fork 72
4.18. Generics #38
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
4.18. Generics #38
Conversation
ここでのboundsは結び付ける(bind)というより境界を定める(bound)というニュアンスだと思います。Java言語のジェネリクスに類似した言語機能があり、そちらは境界ワイルドカード(bounded wildcard)と訳されることが多いようです。 ただ、そのまま「トレイト境界」だとイマイチ伝わらない気はしますね… |
@yohhoy さんの意見に賛成ですね。
難しいですね。polymorphism自体はオブジェクト指向の文脈などでは「多態」と訳されることもありますし。この辺を分かっているプログラマになら訳注なしでも「ああ、こう訳したんだな」と分かってもらえると思います。因みにTaPLだと「poly=many=多、morph=form=相」のような訳になっていたのでそのままでもいいかもしれません。 全くの初心者にはどうなんでしょうね。
「Rustは満足します。」とか?このHappyは「制約を満たせる」の意味かと思いますが、「満足する」がちょうどHappyと制約を満たすのダブルミーニングになれるかな、と |
お二方ありがとうございます。早速取り込んで確認次第WIP外します。 |
@KeenS 相談内容を反映、加えてパラメトリック多相とトレイト境界でTranslation Table更新しました。レビュー宜しくお願いします。 |
standard library provides a type, `Option<T>`, that’s generic: | ||
<!-- Anyway, enough type theory, let’s check out some generic code. Rust’s | ||
standard library provides a type, `Option<T>`, that’s generic: --> | ||
さて、型理論はこれで十分です。続いてジェネリックなコードを幾つか見ていきましょう。Rustが標準ライブラリで提供している型 `Option<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.
[nits]
おそらくここのenoughは「十分理解出来るまで話した」ではなく「理論的な話はこれでもうたくさんだ」のニュアンスが含まれているのですがそれっぽい訳ってありますかね?(相談)
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.
「さて、型理論はもう十分です」
素晴しいと思います。ちょうど(full ofでなくて)'enough'のニュアンスになってると思います。
数点コメントしました。理論がからむ部分なので大変ですね 💦 |
了解しました。 それではマージします。お疲れ様でした。 |
移転開始します。
ここは個人的にはそこまで悪いと思っていないのですが、(訳注は消したほうが良い?)
「多と相」も良いかもしれません…一応熟語から見繕って見たのですが
進捗状況