4 ms·
The builder pattern is a reasonable workaround if your language does not support named and/or default parameters. It’s quite idiomatic in Rust, for example. But
by Sharlin 7y ago
The builder pattern is a reasonable workaround if your language does not support named and/or default parameters. It’s quite idiomatic in Rust, for example. But the builder should usually be an entity distinct from the result.