
Hi. I'm Jon Jagger, director of software at Kosli.
I built cyber-dojo, the place teams practice programming.
Agilis Deliberate Practice

Intention revealing #include ?

#include "dice_thrower.hpp" #include <vector> class stub_dice_thrower : public dice_thrower { ... private: std::vector<int> stubbed; };
could be written like this:
#include REALIZES(dice_thrower.hpp) #include COMPOSES(vector) class stub_dice_thrower : public dice_thrower { ... private: std::vector<int> stubbed; };
Caveat emptor: I don't have any actual examples of this in real code. It's just an idea. It feels a bit like a solution looking for a problem. But I thought I would mention the idea here to see if anyone thinks it has any legs...
Subscribe to:
Posts (Atom)