Is there a compelling reason to adopt a convention for the name of the internal pointer of a PIMPL type?
class FooPrivate;
class Foo
{
public:
// public interface goes here
private:
std::unique_ptr<FooPrivate> pimpl_;
};
I ask because in a code review the reviewer suggested that pimpl_ is not very descriptive. I think this reviewer has never seen or worked with a PIMPL before.
Mine is one of those "odd" employers that wants to be very verbose in their naming schemes. That explains the reviewer's comment.
Yet I feel renaming this variable to something like fooImplementation_ may actually hurt efforts here.
Any article I find on the internet that describes the PIMPL uses similar parlance.
Most favour pimpl or slight variations thereof.
Fretting about nothing?
Or is there some merit to a convention, no matter how tenuous?


