This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-07
Channels
- # admin-announcements (3)
- # beginners (133)
- # boot (123)
- # capetown (2)
- # cider (21)
- # cljs-dev (1)
- # cljsrn (2)
- # clojure (32)
- # clojure-czech (1)
- # clojure-russia (2)
- # clojure-spec (72)
- # clojurescript (4)
- # datomic (28)
- # emacs (19)
- # funcool (1)
- # hoplon (10)
- # jobs-rus (1)
- # onyx (1)
- # other-languages (3)
- # protorepl (3)
- # re-frame (10)
- # reagent (76)
- # ring (2)
- # rum (2)
- # spirituality-ethics (61)
- # test-check (2)
- # testing (1)
- # untangled (3)
I’ve a little curious about map destructing, why design the values to be followed by keywords other than in reverse order? for example (let [{key :key} {:key 'hello}] key )
other than (let [{:key key} {:key 'hello}] key)
?
You almost never see that format (unless you need to rename the variables that are bound). Normally you'd see (let [{:keys [key]} {:key 'hello}] key)
both options are weird
the other one is weird because it reverses the ordering of names and values in normal let
bindings
That is the reasoning - local symbols being bound are kept on the left
It's tempting when learning to reason from sequential destructuring that it's matching shapes or something but you should let that idea go (I had the same struggle)
more practically, a map literal is a map, so for a binding like (let [{a :a b :a} {:a 1}] ...)
, if the syntax had the keys and values reversed it wouldn't work
And the :as
, :keys
, :strs
, and :syms
features would look much weirder the other way
hmm, any ideas how best to do this?
I have n
clojure.core.matrix
es of identical dimensions. I want to generate a matrix where each element is a sequence of all elements in the inputs matrix at that position.
The only way I can think of doing this is sth like
clojure
(let [fstm (first matrices)]
(for [row (range (row-count fstm))]
(for [col (range (column-count fstm))]
(map (mget row col) matrices))))
Hi! Is there any tool/lib to graph the function calls in a codebase?
I mean something with graphviz with arrows from callee to called, and preferably with namespaces as boxes
I tried googling but only found broken stuff
Use case is to have a visual hint to know if there is any dependency mess/namespace that could be factored out
@nilrecurring I have a half-baked one: https://github.com/gfredericks/clj-usage-graph
might've been in your collection of "broken stuff" I suppose
hello, can anyone please tell me how to configure build.boot so changes to backend are watched and system is auto reset?
@lambder, probably better to ask in the #C053K90BR channel
Hi, gang, I alphabetize my dependencies and ns requires. Any compelling reason not to do this? Basically, not sure how/if they cascade.
it should be fine; if there's an ordering sensitivity that indicates a bug somewhere