Skip to content
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

RFC 0198 slice notation 翻譯 #19

Merged
merged 5 commits into from Jun 11, 2022
Merged

RFC 0198 slice notation 翻譯 #19

merged 5 commits into from Jun 11, 2022

Conversation

FizzyElt
Copy link
Contributor

有幾個地方我覺得不太通順的,麻煩各位給予一些建議

https://rust-lang.github.io/rfcs/0198-slice-notation.html#ergonomics

Ergonomics 有什麼更好的詞彙來代替 "人體工學"
blanket implementation 繁體中文應該怎麼範才符合語意

  • The as_slice operator is particularly important. Since we've moved away from auto-slicing in coercions, explicit as_slice calls have become extremely common, and are one of the leading ergonomic/first impression problems with the language. There are a few other approaches to address this particular problem, but these alternatives have downsides that are discussed below (see "Alternatives").
  • The reason to change the notation, rather than the interpretation, is that the exclusive (respectively inclusive) interpretation is the right default for slicing (respectively matching).
  • Like the Index trait, this forces the result to be a reference via &, which may rule out some generalizations of slicing.
  • It should be possible to transition from the current Index and Slice trait designs to an HKT version in the future without breaking backwards compatibility by using blanket implementations of the new traits (say, IndexHKT) for types that implement the old ones.

Copy link
Contributor

@CYBAI CYBAI left a comment

Choose a reason for hiding this comment

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

目前看到缺點以前,先把可以討論的部分留言上來 🙏

text/0198-slice-notation.md Outdated Show resolved Hide resolved
text/0198-slice-notation.md Outdated Show resolved Hide resolved
text/0198-slice-notation.md Outdated Show resolved Hide resolved
text/0198-slice-notation.md Outdated Show resolved Hide resolved
text/0198-slice-notation.md Outdated Show resolved Hide resolved
text/0198-slice-notation.md Outdated Show resolved Hide resolved
text/0198-slice-notation.md Outdated Show resolved Hide resolved
text/0198-slice-notation.md Outdated Show resolved Hide resolved
text/0198-slice-notation.md Outdated Show resolved Hide resolved
text/0198-slice-notation.md Outdated Show resolved Hide resolved
@FizzyElt
Copy link
Contributor Author

FizzyElt commented Jun 2, 2022

我已經修改了一些。剩下 Ergonomics 這個字最後決定如何翻譯,麻煩各位了

@FizzyElt
Copy link
Contributor Author

以將 ergonomics 改為人因工程

@FizzyElt FizzyElt requested review from weihanglo and CYBAI June 10, 2022 16:23
Copy link
Member

@weihanglo weihanglo left a comment

Choose a reason for hiding this comment

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

Thanks. Going to merge this.

@weihanglo weihanglo merged commit 9680efc into rust-tw:zh_tw Jun 11, 2022
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.

None yet

3 participants