On Monday, 9 February 2015 at 09:52:13 UTC, Marc Schütz wrote:

You could also hide the ugly __ctor() call behind a nicely named factory method.

Yes, that's pretty much what I ended up doing. Added a couple static member functions like:

static Boring CreateWithOption1(args);
static Boring CreateWithOption2(args);

Then made the struct constructor private. Not too bad for now. Thanks for your help.

Reply via email to