rust-unofficial/patterns

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

Open

#338 opened on Jan 10, 2023

View on GitHub
 (1 comment) (1 reaction) (0 assignees)Shell (6,622 stars) (292 forks)batch import
A-patternC-clarificationgood first issue

Description

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.

Contributor guide

Clarify naming convention of `build()` in section 3.2.1 · rust-unofficial/patterns#338 | Good First Issue