This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-13
Channels
- # aleph (16)
- # announcements (8)
- # aws (5)
- # babashka (54)
- # beginners (48)
- # calva (7)
- # cider (7)
- # clojure (209)
- # clojure-brasil (4)
- # clojure-europe (20)
- # clojure-italy (12)
- # clojure-nl (21)
- # clojure-uk (69)
- # clojurescript (24)
- # cursive (11)
- # datascript (7)
- # datomic (47)
- # emacs (14)
- # graphql (20)
- # hoplon (25)
- # jobs (1)
- # kaocha (1)
- # leiningen (14)
- # meander (7)
- # off-topic (44)
- # other-languages (1)
- # pathom (20)
- # re-frame (2)
- # reagent (51)
- # reitit (3)
- # remote-jobs (1)
- # shadow-cljs (46)
- # spacemacs (5)
- # sql (65)
- # tools-deps (86)
- # vim (11)
a coworker of mine and i are just a little doubtful that it's smart enough to figure out where the cells are 100% of the time
it works totally fine in simple cases like (cell= [one-cell another-cell])
or (cell= (:something some-cell))
, but as the expressions get more and more complex, we think trusting it is a bit of a leap of faith
the big thing for me, though, is that it isn't immediately obvious to the human reading the code where the cells are
i've never seen a case where a formula couldn't figure out which things are cells, because it just calls cell?
on them
especially if you need to do something like (formulet [x (cell 100)] (when @some-other-cell x))
like if you want to manipulate cells as cells inside a formula, and not just the values contained in the cells
ah! yeah, i guess that would be an example of something you can do with formula-of
and formulet
, but not cell=
, because cell=
eagerly treats cells as their values
Yeah personally I've found cell=
to be really reliable for what it does. (and yeah formula-of and fomulet handle the cases it's not perfect for)
i can't personally think of an example of cell=
failing to recognize cells, especially if you know how to use ~
conditional children, another landmine
ie if
vs if-tpl
i feel that part was clearer back when hlisp was a thing, since the only elements you used were markup or special ones
like the templating model made sense if you knew mustache or whatever. now with everything intermingled, more conceptual overhead
ahem, "power" 😬