|
|
|
|
|
by kubanczyk
1377 days ago
|
|
> Let’s say file A references file B and C, and files B and C both reference D. D doesn’t need to be duplicated. Yes, if an ecosystem does not attempt to ensure that D is at a single version, which is both B-compatible and C-compatible, it moves a mountain of complexity onto A. It might not be apparent for a small program that only uses standard library and never experiences diamond dependencies at all. But the complexity here is that 1. A might get a D1 object/structure/result from B, and later 2. A might get a D2 object/structure/result from C, and then 3. Some code may be needed to ensure D1 compatibility with D2, if they interact. This problem is better to be resolved in an ecosystem than in A. |
|