▲ | baw-bag 5 days ago | |||||||
Please if you are in this situation do not take this advice. You just generate massive garbage abstractions upstream. If boolean arguments are out of hand, the problem isn't the boolean. | ||||||||
▲ | nurettin 5 days ago | parent [-] | |||||||
Isn't that the point? If booleans are out of hand, either you are trying to emulate a state machine or you are lacking enums. Or in case of 20 bool parameters, just make it a struct. Nobody will complain. | ||||||||
|