3 ms·
I'd use a set (or map, or "tags") for the complex example. Basically, you're saying that booleans are hard to enumerate and combine. How you combine states is p
by wvh 2y ago
I'd use a set (or map, or "tags") for the complex example. Basically, you're saying that booleans are hard to enumerate and combine. How you combine states is pretty arbitrary and dependent. For the company partner/AI/features case, just create a set/map called "features" and put a price on each of them. Create a method to check for common combinations, like being a basic customer.