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!

貢獻者指南