This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-07
Channels
- # announcements (3)
- # babashka (28)
- # bangalore-clj (6)
- # beginners (91)
- # calva (14)
- # cider (7)
- # clojars (6)
- # clojure (24)
- # clojure-europe (3)
- # clojure-nl (5)
- # clojure-uk (134)
- # clojuredesign-podcast (1)
- # clojurescript (16)
- # cryogen (3)
- # cursive (3)
- # data-science (1)
- # events (1)
- # fulcro (7)
- # jobs-discuss (1)
- # luminus (4)
- # malli (1)
- # re-frame (7)
- # shadow-cljs (74)
- # spacemacs (23)
- # sql (6)
- # tools-deps (2)
What solutions there are for https://prettier.io/ like functionality? Basically a commit hook that automatically reformats the Clojure code to some sort of official style standard.
Cljfmt
might help?
https://github.com/weavejester/cljfmt
Just noticed
static final public Boolean T = Boolean.TRUE;//Keyword.intern(Symbol.intern(null, "t"));
in clojure.lang.RT
; interesting to see Clojure presumably used something closer to the more typical lispian t
to represent true
(in this case, using :t
) at some point (and then when aiming to look through the commits, I also happened to immediately land on this particular commit and it appears it in fact was originally a classic t
)
-static public Symbol T = Symbol.create(null, "t");
+static public Keyword T = Keyword.intern(Symbol.create(null, "t"));
Is clojure.xml part of the public API? The comment here makes me think not (or is it specifically emit? in which case the library is not useful to me.) https://clojure.atlassian.net/browse/CLJ-408
I think only parse is. Also that library doesn’t handle xml namespaces properly iirc.
I have very simple requirements. I've switched to data.xml, and hopefully the api will remain stable enough for me to be okay with it.
clojure.xml should be considered deprecated imo
Thanks. Do you know about an example where this happens? (I'm trying to make Calva Paredit do the right thing when readers are present.)
Hi! I believed there was a function like some
that returns the index of the element found instead of the element itself but I cannot find the function. Was I wrong? (I guess I could use keep-indexed
as a workaround...)
But it doesn't take a predicate 😞
Maybe something like this?
(letfn [(index-of [desired s]
(some #(when (= desired (s %)) %) (range (count s))))]
(index-of :e [:a ::c :d :e :f]))
thank you
the problem is I don't want to compare for equality but use a custom predicate