rust-unofficial/patterns

Clarify paragraph in Generics as Type Classes

Ouverte

#337 ouverte le 6 janv. 2023

 (0 commentaire) (1 réaction) (0 personne assignée)Shell (292 forks)batch import
A-functionalC-clarificationgood first issue

Métriques du dépôt

Stars
 (6 622 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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!

Guide contributeur