This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-30
Channels
- # announcements (1)
- # beginners (94)
- # calva (12)
- # cider (5)
- # cljdoc (4)
- # cljs-dev (4)
- # clojure (170)
- # clojure-austin (2)
- # clojure-dev (45)
- # clojure-germany (53)
- # clojure-italy (20)
- # clojure-nl (6)
- # clojure-spec (25)
- # clojure-uk (242)
- # clojurescript (161)
- # cursive (16)
- # data-science (3)
- # datomic (20)
- # defnpodcast (6)
- # emacs (40)
- # events (1)
- # fulcro (80)
- # funcool (46)
- # jobs (1)
- # leiningen (23)
- # liberator (2)
- # lumo (43)
- # mount (3)
- # off-topic (21)
- # onyx (1)
- # pedestal (15)
- # re-frame (23)
- # reitit (4)
- # schema (1)
- # sfcljs (1)
- # shadow-cljs (167)
- # spacemacs (1)
- # tools-deps (21)
- # yada (2)
I don’t really understand the rationale for having separate alias types, e.g. R, C, O, M
Why not just have a single alias type and merge in whatever it contains? What’s the use case for separating them?
@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.
you may have heard that Rich likes taking things apart
The dependencies would get used when calculation the classpath, and :main-opts
would get picked up when running.
> 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.
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
But surely the different parts of the lifecycle will just get picked up as needed anyway?
In Kenny’s test example, the :main-opts
will just get ignored when building a classpath.
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.
building a classpath involves both the R and C parts
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
as you know, sometimes decisions that seem important early seem less so later
fwiw, I only use A these days
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
I think that would get you far