This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-17
Channels
- # bangalore-clj (1)
- # beginners (70)
- # boot (1)
- # cider (39)
- # cljs-dev (69)
- # clojure (56)
- # clojure-dev (1)
- # clojure-norway (1)
- # clojure-russia (4)
- # clojure-spec (1)
- # clojure-uk (10)
- # clojurescript (34)
- # clr (3)
- # community-development (3)
- # component (1)
- # datascript (1)
- # datomic (7)
- # emacs (1)
- # figwheel (3)
- # fulcro (5)
- # graphql (2)
- # hoplon (75)
- # jobs (4)
- # jobs-discuss (1)
- # luminus (15)
- # planck (3)
- # portkey (55)
- # re-frame (2)
- # reagent (2)
- # reitit (3)
- # ring (13)
- # ring-swagger (1)
- # shadow-cljs (72)
- # spacemacs (4)
- # tools-deps (2)
- # unrepl (7)
- # vim (2)
what's going on here??
how can email
be undefined if it is part of the fn signature?
is this something to do with javelin?
If it works with formula-of
then it’s probably a macroexpansion bug in cell=
. It’s pretty much why I wrote formula-of
mmm that's bad
completely WSOD me on prod and can't reproduce locally 😕
nah, using advanced
ok, hmm now i can reproduce
hmm, looks like if i only put email
in the cell=
once it works
but that could just be a coincidence...
like, maybe it potentially breaks in advanced compilation if a cell=
references the same cell more than once?
i'm just guessing at this point...
Well, formula-of
is way simpler than cell=
, which is why I suggest trying it. You can also use the underlying formula
form to eliminate code walking from the picture. I don’t really trust code-walking, which is why I suspect it here.
the __$1
looks a little suss to me, like it's incrementing to a new symbol name instead of using the same one twice maybe?
That could be a variable introduced by cell= or it could just be the cljs compiler - no idea.
or a weird combination of the two...
mmk i'll checkout formula-of
when i've got time
for now i just have to get prod back up 😛
might need to "borrow" some more of your code in the next hoplon branch 😉
can you flick me a link to formula-of
on github?
well good then 🙂
it's like a magic defn
the structure of formula-of
looks a lot like defn
to me
well fn
actually
It’s really just a thin wrapper around formula
, mostly because I found it confusing to do by hand.
i like it
i'd also support it being called fn
😛
so i could do (j/fn [x] (* x x))
tempting
Obviously that would be in your own namespace, so go for it. But I think it’s a mistake.
well what does "formula of" mean?
hah ok
formula and function are pretty interchangeable words in other contexts
save me some typing
cell=
is pretty common
yeah you know what, i can just do it
clojure saves so much typing, i can always put a little back in
i also don't like aliases much
there's a handful that i use a ton, like h
for hoplon and j
for javelin
Like I said, I’m a fan of more descriptive names, even when it comes at the expense of brevity.
me too
very quickly lose track of what letters mean what
and it's easier to refactor if i can search the whole project for something
h
, j
, d
(datascript), spec
that's it for me...
oh, and is
and deftest
🙂
this is definitely one of those situations where i really didn't need formula-of
until i really did
@candera formula-of
fixed it!
but it wasn't the duplicate use of the symbol...
that didn't fix it on prod
only local
so i don't know what the problem was, but it's fixed now 🙂