This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-24
Channels
- # announcements (2)
- # babashka (31)
- # beginners (608)
- # cider (60)
- # clj-kondo (22)
- # cljsrn (28)
- # clojure (14)
- # clojure-europe (5)
- # clojure-nl (3)
- # clojure-spec (1)
- # clojure-uk (19)
- # clojurescript (38)
- # conjure (20)
- # cursive (9)
- # data-science (26)
- # datascript (4)
- # datomic (19)
- # duct (4)
- # emacs (8)
- # figwheel-main (5)
- # fulcro (7)
- # helix (15)
- # leiningen (12)
- # malli (2)
- # off-topic (20)
- # overtone (3)
- # pathom (14)
- # pedestal (10)
- # re-frame (2)
- # reitit (13)
- # ring (13)
- # shadow-cljs (18)
- # spacemacs (8)
It would be great if tap>
returned its argument so that you could put it in the middle of thread macros
more and more I've started adopting bastardized lets:
(let [a (f)
b (f' a)
_ (tap> b)
c (f'' b)]
c)
I don't reach for them immediately, but I feel they solve problems like wanting to do something in the middle of a threading macro
FWIW I started writing an "enhanced" version of tap that has 3 forms ?> ?-> ?->>
that captures the source location as well
I have only used it in shadow-cljs for CLJ stuff so far though so it doesn't do any of the "do nothing in release
builds" stuff yet
plenty of namespaces in shadow-cljs itself have [shadow.debug :refer (?> ?-> ?->>)]
in their requires
there is also a (shadow.debug/locals)
which dumps all the locals at that location as a tap
none of this is guaranteed to stay though, really just a basic layer to address some of the limits of tap>
. no clue how this would look when done properly.
don't really like that all of them take a second arg though, since thats the only reason it has 3 variants .. had some plans for that but not sure it makes sense anymore
Question: Why would I see this error The required namespace "enqus.views" is not available, it was required by "enqus/main.cljs"
with a file tree like this:
src/cljs/enqus/main.cljs
src/cljs/enqus/views/views.cljs
Where views.cljs
starts off with (ns enqus.views
?I'm new to CLJS and it seems like either nested namespaces are disallowed (which would be strange) or I'm doing something wrong (more likely).
@nathan.probst your namespaces need to match your file system