3 ms·
From a purely technical point of view, doing this is a terrible idea as it adds additional, unnecessary state to objects, and hence makes it possible for them t
by aviraldg 13y ago
From a purely technical point of view, doing this is a terrible idea as it adds additional, unnecessary state to objects, and hence makes it possible for them to break in more ways.
Using the Builder pattern, or keyword arguments, achieves the intended goal of making API features discoverable without the added complexity.