Skip to content

Chapter 3 Item 12 翻译建议 #147

@Yan-yongsheng

Description

@Yan-yongsheng

Technical discussion or constructive comments(技术讨论或建议的详细描述):

When practical, the toString method should return all of the interesting information contained in the object。
当实际使用时,toString 方法应该返回对象中包含的所有有趣信息;
A particularly annoying penalty for failing to include all of an object’s interesting information in its string representation is test failure reports that look like this:
如果没有在字符串表示中包含所有对象的有趣信息,那么一个特别恼人的惩罚就是测试失败报告,如下所示:

建议:interesting 翻译为值得(引起/需要)关注的或者重要的会更恰当一些,也更好理解。

以及Chapter 2 Item 8
该规范不仅不能保证终结器或清洁剂能及时运行;它并不能保证它们能运行。

存在错别字。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions