rust-unofficial/patterns

Clarify paragraph in Generics as Type Classes

开放

#337 创建于 2023年1月6日

 (0 条评论) (1 个反应) (0 位负责人)Shell (292 个派生)batch import
A-functionalC-clarificationgood first issue

仓库指标

星标
 (6,622 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

The section 5.2. Generics as Type Classes contains the following paragraph:

In object-oriented languages, classes can inherit behavior from their parents. However, this allows the attachment of not only additional behavior to particular members of a type class, but extra behavior as well.

which I find fairly confusing. The second sentence contains repetitive words and does not clarify the first statement enough. It would help if this paragraph was rewritten and/or expanded to add meaning and additional information. Thanks!

贡献者指南