rust-unofficial/patterns
Clarify naming convention of `build()` in section 3.2.1
開放
#338 建立於 2023年1月10日
A-patternC-clarificationgood first issue
倉庫指標
- 星標
- (6,622 顆星)
- PR 合併指標
- (30 天內沒有已合併 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.