3 ms·
“…for bases classes with a long name, repeating it in the body of the derived class adds a lot of clutter to it.” When you write the code, it feels a bit cumbe
by evincarofautumn 9y ago
“…for bases classes with a long name, repeating it in the body of the derived class adds a lot of clutter to it.”
When you write the code, it feels a bit cumbersome. When you read it, though, you know exactly what’s going on—which pays over and over again. These days, for most code in any language, I’m more inclined to say to myself “suck it up and be explicit” when it comes to these small decisions—as long as “explicit” doesn’t get confused with “needlessly long-winded”, of course.