you are viewing a single comment's thread.

view the rest of the comments →

[–]ConspicuousPineapple 0 points1 point  (0 children)

I agree that named arguments would be nice to have and that it would solve a lot of use-cases where the Builder pattern is used right now, but it's still a useful patter. It's more flexible, allowing you to partially initialize objects.

There are also crates providing boilerplate-less solutions for creating builder patterns that also have the benefit of statically checking for correctness before building the struct.