rust-unofficial/patterns

Clarify naming convention of `build()` in section 3.2.1

オープン

#338 opened on 2023/01/10

 (1 件のコメント) (1 件のリアクション) (0 人の担当者)Shell (292 件のフォーク)batch import
A-patternC-clarificationgood first issue

Repository metrics

Stars
 (6,622 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

The current builder design pattern implies that the method the produces whatever is being built should be named build(), which seems to contradict the Rust API Guidelines on the same subject.

I think there should be some clarifying language around this: whether the method should always be named build(), or be adapted to fit the API.

コントリビューターガイド