Skip to content

4.12. Enums #81

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

4.12. Enums #81

merged 3 commits into from
Feb 13, 2016

Conversation

keiichiw
Copy link
Contributor

列挙型(Enums) の章の翻訳をします。

@keiichiw keiichiw changed the title [WIP] 4.12. Enums 4.12. Enums Feb 11, 2016
@keiichiw
Copy link
Contributor Author

レビューよろしくお願いします。 @KeenS

possible variants:
possible variants: -->
列挙型の値は、ヴァリアントに関連するデータに加え、その値自身がどのヴァリアントであるかという情報を持っています。
これを「タグ付きユニオン」(tagged union) ということもあります。
Copy link
Member

Choose a reason for hiding this comment

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

[nits]

「タグ付きユニオン」

struct, enumは「構造体」「列挙型」にしてあるので「タグ付き共用体」の方が馴染むかもしれません。

@KeenS
Copy link
Member

KeenS commented Feb 12, 2016

@kw-udon
数点コメントしました。 [nits] がついているものは些細なので無視して構いません。
確認お願いします。

@keiichiw
Copy link
Contributor Author

@KeenS レビューありがとうございます。「タグ付き共用体」という訳を取り入れました。
また、コメントに返信しました。

@KeenS
Copy link
Member

KeenS commented Feb 13, 2016

ありがとうございます。マージします。

KeenS added a commit that referenced this pull request Feb 13, 2016
@KeenS KeenS merged commit 3f76e29 into rust-lang-ja:master Feb 13, 2016
@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