rust-unofficial/patterns
Clarify naming convention of `build()` in section 3.2.1
Aperta
#338 aperta il 10 gen 2023
A-patternC-clarificationgood first issue
Metriche repository
- Star
- (6622 stelle)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
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.