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

修正了 chapter 3-5 的一些不符合汉语语言习惯的翻译 #107

Merged
merged 1 commit into from
Aug 15, 2020
Merged

修正了 chapter 3-5 的一些不符合汉语语言习惯的翻译 #107

merged 1 commit into from
Aug 15, 2020

Conversation

gonearewe
Copy link
Contributor

When resolving a issue, it's referenced in follow: (当解决一个 issue 时,引用该 issue 的编号)

What kind of change does this PR introduce? (check at least one.) (该 PR 带来了什么样的改变,至少选择一个)

  • Bugfix(错误修复)
  • Improvement(改进翻译质量)
  • Other, please describe(其他):

The PR fulfills these requirements: (该 PR 应该符合的要求)

  • It's submitted to the dev branch, not the master branch.(该 PR 应该提交到 dev 分支,而不是 master 分支)

Other information(其他信息):

@clxering clxering self-requested a review August 15, 2020 01:25
Copy link
Owner

@clxering clxering left a comment

Choose a reason for hiding this comment

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

OK~已合并,感谢给出的建议

@clxering clxering merged commit bf81e8f into clxering:dev Aug 15, 2020
@@ -315,7 +315,7 @@ To recap, all classes that implement Cloneable should override clone with a publ

Is all this complexity really necessary? Rarely. If you extend a class that already implements Cloneable, you have little choice but to implement a well-behaved clone method. Otherwise, you are usually better off providing an alternative means of object copying. A better approach to object copying is to provide a copy constructor or copy factory. A copy constructor is simply a constructor that takes a single argument whose type is the class containing the constructor, for example,

所有这些复杂性真的有必要吗?很少。如果你扩展了一个已经实现了 Cloneable 接口的类,那么除了实现行为良好的 clone 方法之外,你别无选择。否则,最好提供对象复制的替代方法。一个更好的对象复制方法是提供一个复制构造函数或复制工厂。复制构造函数是一个简单的构造函数,它接受单个参数,其类型是包含构造函数的类,例如
搞这么复杂真的有必要吗?答案是否定的。如果你扩展了一个已经实现了 Cloneable 接口的类,那么除了实现行为良好的 clone 方法之外,你别无选择。否则,最好提供对象复制的替代方法。一个更好的对象复制方法是提供一个复制构造函数或复制工厂。复制构造函数是一个简单的构造函数,它接受单个参数,其类型是包含构造函数的类,例如
Copy link

Choose a reason for hiding this comment

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

俚语化翻译挺有意思的

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