Builder: Tiny Utility Library to Add a Builder API to Classes
Vladimir Marchevsky
vladimmi at gmail.com
Thu Jan 5 23:31:36 UTC 2023
On Thursday, 5 January 2023 at 21:48:40 UTC, Vijay Nayar wrote:
>
> 2. Using a constructor with many arguments.
> ```
> A a = new A("Bob", 20, false, true);
> ```
>
> This approach can construct arguments inline, such as during a
> function call, however, the arguments are not labeled, making
> it easy to get the order wrong or for the meaning to be unclear.
Hopefully we'll finally have named arguments. Considering they
were accepted to language more than two years ago - maybe in the
next century...
More information about the Digitalmars-d-announce
mailing list