This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-15
Channels
- # 100-days-of-code (7)
- # beginners (58)
- # boot (1)
- # cider (12)
- # clojure (69)
- # clojure-nl (1)
- # clojure-serbia (1)
- # clojure-spec (34)
- # clojure-uk (3)
- # clojurescript (14)
- # clojutre (3)
- # core-async (1)
- # core-logic (6)
- # cursive (44)
- # datomic (1)
- # defnpodcast (1)
- # emacs (16)
- # figwheel-main (3)
- # fulcro (14)
- # immutant (3)
- # leiningen (9)
- # mount (1)
- # nrepl (19)
- # off-topic (4)
- # pedestal (2)
- # re-frame (73)
- # ring (2)
- # shadow-cljs (40)
- # tools-deps (14)
- # yada (4)
we have found that ::
is a bit clunky for refactoring, is other people using the long :ns.foo.bar/quuz
for specs?
Not really. You change the name just in the ns declaration vs everywhere you use it. I guess it s quite personal
well you have to change the namespace and the alias in case it changes
while with unqualified you don't have to do anything else, just copy them around
I mean fully qualified 😄
following along these lines, sometimes you need to make them unique...you cannot use :foo/bar
or they would clash
this though means you need to give names
and naming is hard and requirements change and all that
so we found fully qualified better for us - for now... 😄
Same argument that's sometimes mentioned with clj.spec.alpha, just use aliases ex s/def and the day it changes to beta or whatever you just update the alias target
In the end it s just a search & replace with less/more hits, I guess both ways are fine
well my argument would be that you don't even need search and replace
at the price of spec verbosity
my question was something else though.. 😄
kind of a feature request, but at this point I don't know if it makes sense 😄
it would be great if you could have aliases of keywords that are not tight to a namespace
we do expect to have something like this, but not sure yet exactly what it will look like
didn’t want to couple it tightly to existing namespace/alias support
like (defkw :my-long.foo.bar :mfb)
oh cool ok
is there a JIRA to upvote? I can open one
I'll check 😄
there is one I think
oh nice
will track it and write there if I have good ideas 😄
thank you Alex