> In the exporting library? In the importing library?
Well, in both places. Basically, similar part of namespace guarantees that api is the same below.
[...] This exact same version would be pulled in alongside other versions of the same library, used in other parts of a large app.
It may lead to code duplication and larger binaries however it would essentially give you a sandbox with very little effort.
Well, let's say I am working on a library. Tempting as it is to release the first draft, I'd first use this fresh library in a few places, catch some bugs, fix them, and then release.
Because this takes time, this library would see very few releases per year.
It would be less likely to cause multiple version conflict.