2 ms·
When I subclass hashmap, I may desperately want to reimplement collision handling without also having to rewrite the every other private function it calls. Priv
by true_religion 10y ago
When I subclass hashmap, I may desperately want to reimplement collision handling without also having to rewrite the every other private function it calls. Private functions close the library off to custom extension.
- mkarklins 10y ago... and keeps the library's updates smoother, since there can't be any tinkering with library's implementation.
- true_religion 10y agoYou don't have to support users who use your library internals. Django for instance didn't support everyone who relied on undocumented internals in its orm. The standardization for the latest release made those internals clean and documented, but unapologetically broke other people's code including mine.