# Hands-on Rust: Why name the MapBuilder constructor "build" instead of "new"? (Page 94)

**URL:** <https://forum.devtalk.com/t/hands-on-rust-why-name-the-mapbuilder-constructor-build-instead-of-new-page-94/4701>\
**Category:** PragProg Customers\
**Tags:** feedback, book-hands-on-rust\
**Created:** [4 December 2020 15:38 UTC](https://forum.devtalk.com/t/hands-on-rust-why-name-the-mapbuilder-constructor-build-instead-of-new-page-94/4701 "2020-12-04T15:38:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![atc0005](https://forum.devtalk.com/user_avatar/forum.devtalk.com/atc0005/32/1345_2.png) [@atc0005](https://forum.devtalk.com/u/atc0005)\
**Post date:** [4 December 2020 15:38 UTC](https://forum.devtalk.com/t/hands-on-rust-why-name-the-mapbuilder-constructor-build-instead-of-new-page-94/4701/1 "2020-12-04T15:38:58Z")

</div>

I notice that `new` is used as the constructor name for `Map` and `Player`, but `build` as the constructor name for `MapBuilder`. I feel like the answer for this difference should be obvious, but it’s escaping me.

---

<div class="post-metadata">

**Author:** ![herbert](https://forum.devtalk.com/user_avatar/forum.devtalk.com/herbert/32/1233_2.png) [@herbert](https://forum.devtalk.com/u/herbert)\
**Post date:** [4 December 2020 15:42 UTC](https://forum.devtalk.com/t/hands-on-rust-why-name-the-mapbuilder-constructor-build-instead-of-new-page-94/4701/2 "2020-12-04T15:42:55Z")

</div>

Thanks! Added to the issue tracker. I should probably rename it for consistency (you can use whatever name you want, but consistency is good). If I remember rightly, I originally had the builder using the “builder pattern” (makes sense), but it was too big - so it got trimmed down to fit in the book. Should have changed the names when I did it!

---

<div class="post-metadata">

**Author:** ![atc0005](https://forum.devtalk.com/user_avatar/forum.devtalk.com/atc0005/32/1345_2.png) [@atc0005](https://forum.devtalk.com/u/atc0005)\
**Post date:** [4 December 2020 15:45 UTC](https://forum.devtalk.com/t/hands-on-rust-why-name-the-mapbuilder-constructor-build-instead-of-new-page-94/4701/3 "2020-12-04T15:45:51Z")

</div>

That makes sense. Thanks for the background info/context!
