Skip to content

4.19. Traits #54

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 7 commits into from
Feb 9, 2016
Merged

4.19. Traits #54

merged 7 commits into from
Feb 9, 2016

Conversation

Nnwww
Copy link
Contributor

@Nnwww Nnwww commented Feb 2, 2016

移転開始(結構加筆されてて驚きました)(遅くなりました、すみません)

相談内容

Line 269 "wild west"の和訳について

英語版wiktionaryより、「無法地帯」→「何でもあり」にしました(日本人的には世紀末?)

Line 556 'Deriving'の和訳について

幾つかの関数型プログラミング言語で登場するDerivingに和訳が充てられているのを見たことが無いのでそのままにしていますが、何か良い案が有れば宜しくお願いします。

進捗状況

  • 暫定翻訳完了
  • 相談内容洗い出し
  • 時間を置いて再確認
  • Ownerレビュー反映

@Nnwww Nnwww mentioned this pull request Feb 2, 2016
4 tasks
@Nnwww Nnwww changed the title [WIP] 4.19. Traits 4.19. Traits Feb 5, 2016
@Nnwww
Copy link
Contributor Author

Nnwww commented Feb 5, 2016

@KeenS 暫定訳完成しました。レビューよろしくお願いします。

<!-- Traits are similar, except that we first define a trait with a method
signature, then implement the trait for a type. In this example, we implement the trait `HasArea` for `Circle`: -->
始めにトレイトをメソッドのシグネチャと共に定義し、続いてある型のためにトレイトを実装するという流れを除けばトレイトはメソッド構文に似ています。
この例では、 `Circle` のために `HasArea` トレイトを実装しています。
Copy link
Member

Choose a reason for hiding this comment

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

[nits]

Circle のために HasArea トレイトを実装しています

この「for」は「に向けた」の意味なので普通に 「CircleHasArea を実装しています」 で良いと思います。

@KeenS
Copy link
Member

KeenS commented Feb 5, 2016

@Nnwww いくつかコメントしました。また、コードのコメントアウトが一部 #だけになっていたので # // にして下さい。

Wild West

そうですね。あの西部劇のような感じはちょうど「世紀末」がぴったりですね。折角ですし「世紀末感漂いますが」とかに訳しましょうか。

Deriving

一応「導出」の訳が充てられますがフィーチャの名前なのでそのままでいいと思います。

長文の翻訳お疲れ様です。

@Nnwww
Copy link
Contributor Author

Nnwww commented Feb 7, 2016

@KeenS 反映完了しました、宜しくお願いします。

@KeenS
Copy link
Member

KeenS commented Feb 7, 2016

@Nnwww 非常に申し訳ないのですが今のRustでは導出のアノテーションは「Deriving」ではなく「Derive」でしたね(古いRustやHaskellの記憶が混じってました)。
それだったら「Deriving」は変なので「Derive」か「導出」に変更して頂けますか?
本当に申し訳ありません。

@Nnwww
Copy link
Contributor Author

Nnwww commented Feb 8, 2016

@KeenS Rust by Exampleを見た所Driveという章で独立していたのでそのように変更しました。
宜しくお願いします。

@KeenS
Copy link
Member

KeenS commented Feb 9, 2016

了解しました。

KeenS added a commit that referenced this pull request Feb 9, 2016
@KeenS KeenS merged commit f661291 into rust-lang-ja:master Feb 9, 2016
@tatsuya6502 tatsuya6502 modified the milestone: 1.6 Apr 28, 2016
@Nnwww Nnwww deleted the 4_19_Traits branch August 9, 2016 06:07
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