Hacker News new | ask | show | jobs
by AdieuToLogic 2723 days ago
The "pimpl idiom"[0] is about insulation, not optimization. What it affords is ensuring collaborators have no knowledge of a type's implementation details (data as well as private methods), which also has the byproduct of allowing for faster compilation times.

HTH

0 - https://cpppatterns.com/patterns/pimpl.html

1 comments

AKA Bridge Pattern in GoF-speak

https://en.wikipedia.org/wiki/Bridge_pattern