Fork me on GitHub
#tools-deps
<
2018-08-30
>
cfleming01:08:41

I don’t really understand the rationale for having separate alias types, e.g. R, C, O, M

cfleming01:08:08

Why not just have a single alias type and merge in whatever it contains? What’s the use case for separating them?

kenny02:08:25

@cfleming I find it useful to have a :test alias that includes test dependencies and :main-opts, which I can optionally enable to actually run the tests.

Alex Miller (Clojure team)02:08:00

you may have heard that Rich likes taking things apart

cfleming02:08:08

@kenny But if you had a single alias for that that would work anyway.

kenny15:08:47

Ah yes, you're right. That simplifies things. I have no use case for the others now.

cfleming02:08:45

The dependencies would get used when calculation the classpath, and :main-opts would get picked up when running.

cfleming02:08:03

You don’t need the concept of separation for that.

cfleming02:08:53

> you may have heard that Rich likes taking things apart Sure, but I hope he also has reasons for that. I haven’t seen any for this particular case, which is why I asked.

Alex Miller (Clojure team)02:08:59

the idea is that they can be used for different parts of the lifecycle and you can choose which part you’re affecting. Or you could say R,C,O,M are the simple part and A is the easy part

cfleming02:08:48

But surely the different parts of the lifecycle will just get picked up as needed anyway?

cfleming02:08:13

In Kenny’s test example, the :main-opts will just get ignored when building a classpath.

cfleming02:08:43

It seems like you’d only use that when you want to remove specific fields when applying an alias, and I can’t imagine a case where that would be useful.

Alex Miller (Clojure team)02:08:51

building a classpath involves both the R and C parts

Alex Miller (Clojure team)02:08:35

this is not a part of the design that I feel strongly about and I’m not going to give you an impassioned defense for it

Alex Miller (Clojure team)02:08:04

as you know, sometimes decisions that seem important early seem less so later

cfleming02:08:51

Ok, thanks.

Alex Miller (Clojure team)02:08:16

fwiw, I only use A these days

cfleming03:08:00

Yeah, that’s what I would do too. I’m mostly wondering how much support I should be adding for this to Cursive, or if I should just assume everything is implicitly A

cfleming03:08:11

I think I’ll do that until someone complains about it.

Alex Miller (Clojure team)03:08:15

I think that would get you far