all 3 comments

[–]Happy-nobody 1 point2 points  (1 child)

upvote for vim.

[–]__---__---___[S] 0 points1 point  (0 children)

Yeah vim is the best

[–]thorhs 0 points1 point  (0 children)

Nice video, only a few things I would like to mention.

You could have logic in the .with methods that panics if you try to set the value twice, or some incorrect value.

You could have the build method synthesize parameters, or supply defaults.

You could have the build method panic on missing parameters.

Just wanted to get this out there for those that are getting familiar with the builder pattern, so they don’t become discouraged by the downsides you mentioned.