 both designs, and there are of course more complicated ways/features
that can be used to design your code around templates that need to discriminate by things like types.</p><p>However, the main point of this one-off post was just to show and explain a different way
of doing things, so that it doesn&apos;t seem like a nested web of <code>static ifs</code> is the only
way to handle something like this.</p><p>D will let you mold your code to the exact vision (or close enough to it) of how you want your API t