Hacker News new | past | comments | ask | show | jobs | submit login

Looking forward :) I just know getting things in core is difficult b/c understandably you wanna keep most things out in utils libs.

But if you wanna have launchable scripts/code-snippets then having to ask people to append -Sdeps blahblah complicates things a bit

btw, I had a question about dependencies resolution that's always been a bit mysterious for me

from: https://insideclojure.org/2018/05/04/add-lib/ "Additionally, this code is not just blindly adding dependencies you ask for but is actually considering them in the context of the dependencies already on your classpath. So if for example, you already had a version of org.clojure/data.priority-map above, it would do the dependency resolution in the context of that version and not resolve to or add a new version to the classpath."

If you have libraries A and B and they depends on library C. Say A has it tagged at version v1.234 and B has it tagged at v1.345. From the doc's glossary it sounds like it will just get the latest version and hope nothing breaks. https://clojure.org/reference/deps_and_cli#_glossary

I haven't had it happened, but I could imagine a scenario where you add library B and library A starts to misbehave. And if I understand correctly, there is no way to have multiple versions of a library in the path. Is that right?

I know in C++ world this is a big unspoken issue. Package managers usually just mash things with the latest version and hope it works, while some build systems (like Hunter) will modify symbols so you can link to two copies.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: