2 ms·
I believe the problem appears when module A returns a value of type B@0.1, and that gets passed on to module C which actually expected a value of type B@0.2. Th
by tsimionescu 5y ago
I believe the problem appears when module A returns a value of type B@0.1, and that gets passed on to module C which actually expected a value of type B@0.2. This is a fundamental problem with having multiple versions of the same library used in the same program. The problem is much worse with any kind of dynamic boxing support, since it visibility of the type can't be guaranteed statically.
Of course, for many programs, those values are not returned outside the original scope and all works well.
- ampdepolymerase 5y agoCargo is closer to NPM. It does not require SAT resolution. You can have conflicting major versions of the same dependency.
- tsimionescu 5y agoThis was my point as well? You can have different versions of the same library, as long as you do not try to pass around data from one version to the other - which would not work in any language anyway.