This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-29
Channels
- # admin-announcements (1)
- # announcements (20)
- # babashka (43)
- # beginners (134)
- # calva (2)
- # clerk (7)
- # cljdoc (9)
- # clojars (8)
- # clojure (91)
- # clojure-europe (21)
- # clojure-nl (1)
- # clojure-norway (13)
- # clojure-uk (1)
- # clojurescript (5)
- # datahike (3)
- # docker (2)
- # emacs (6)
- # fulcro (7)
- # graphql (9)
- # honeysql (24)
- # improve-getting-started (5)
- # introduce-yourself (1)
- # lambdaisland (1)
- # luminus (3)
- # malli (3)
- # nbb (19)
- # off-topic (22)
- # pathom (1)
- # portal (3)
- # practicalli (1)
- # rdf (26)
- # reagent (29)
- # reitit (9)
- # shadow-cljs (15)
- # spacemacs (3)
- # sql (4)
- # tools-build (30)
- # xtdb (41)
Yesterday's post-nursery cargo bike adventure. He points and say "play!" in Danish whenever he spots a puddle, so of course we have to stop the bike and check it out.
We went to the beach near my parents' the other day, hoping for a nice walk looking for amber. It was mostly a struggle to keep our son occupied enough not to venture out in the waves beyond the protection of his wellies .
I know that struggle well. He does listen to me when I say “no farther”, but also likes to tease me a lot by going a little bit too close to the water just to see my reaction.
hahaha
maaning
so i've got some cljs
namespaces with mixed macro and fns - the macro sugars the fns... i tried having separated .clj
and .cljs
files, because there are no fns which are cross-platform, but found it hard to read because the .clj
macros spit out the .cljs
fns so there are dependency links. i'm now trying a .cljc
file with lots of #?
... do y'all agree or disagree this is more readable than separate files ?
https://gist.github.com/mccraigmccraig/1c869f5c8ab2a078c2199db3b187650a
it does look a lot like two different namespaces mashed together
it does in one sense ... but i seem to have gotten over the noise of the #?
s, and it has the shape of a single namespace i.e. the later fns/macros build on the earlier fns (i updated the gist to my latest code which shows this)
when there's only a single macro having it split over two files wasn't sooo bad... but there are other cases where there are a sequence of cljs fns each with a corresponding sugar macro and i was really struggling to grok those across separate files ( https://gist.github.com/mccraigmccraig/d43808dddaf8fd4e061ed5bfaeae24d1 )