Dec 28, 2023
Depending on the scenario, this might bite back not in a nice way. But in general, I love the choice of a `class` and the isomorphic nature of it. In a project where I have a rigid set of possible types and constraints, I don't see any better alternative! The problem arises when you have more "fluid" types, like 4-5 flavors of notifications, for example, which will require either wet or convoluted code. In such case, the composition might be a more preferable choice