by mmgutz · 11y ago · 0 comments
Are there any statically typed languages that solve the diamond dependency issue elegantly?
The result being that unless you hit a particularly crappy piece of software, it's save to just pick the later version of two dependencies and use that.
It's a problem a human has to get involved with at some point no matter what.
foo v1.0.1
foo v2.0
foo v1.5Of course, the two versions are incompatible, so if one tries to get them to interact (e.g. pass a type from v1.5 into a function from v2.0), there'll be errors. However, these will be static type errors, instead of some strange runtime behaviour.