enums and version/static if/"inheritance"
Walter Bright
newshound2 at digitalmars.com
Wed Jul 31 19:03:32 UTC 2024
On 7/31/2024 2:23 AM, IchorDev wrote:
> your suggestion forsakes the DRY principle.
Indeed, it does. Consider the evolution of expertise:
1. novice - follows the rules because he's told to
2. master - follows the rules because he understands the point of the rules
3. guru - violates the rules because he understands when the rules don't apply
BTW, your example looks fine as it is!
More information about the Digitalmars-d
mailing list