Fork me on GitHub
#devcards
<
2016-06-20
>
kauko19:06:37

@bhauman: I'm trying to use Devcards with Rum+Carry, but the problem is that the card expects the initial data to be either an Atom, or a map. I'm trying to supply it a carry/EntangledReference which is pretty much a read-only atom, but it does not accept it. Neither does it accept anything created by funcool/lentes.

bhauman19:06:25

@kauko: wrap what you need in a map, and then unwrap it before providing using it

bhauman19:06:37

wrap it in an atom I mean

kauko19:06:02

The data inspector does not work then

kauko19:06:21

That is because of carry, not because of devcards

kauko19:06:30

but I think it's possible to make devcards work with carry

bhauman19:06:49

don't really have any suggestions for you right now

kauko19:06:27

Does the data-inspector really need an atom, or just something it can dereference?

kauko19:06:37

or watch? Because both of those are implemented

bhauman19:06:21

good point, the atom test could just check for those, I'm pretty sure

bhauman19:06:44

If you want to take a stab at a PR, I'll look at it

kauko19:06:51

The history thingy probably needs the state to be writable though, right?

kauko19:06:13

But for that I could create a lense (I believe that's the term?) with lentes.

bhauman19:06:30

I'm pretty sure it keeps its own history of snapshots,

bhauman19:06:48

the history shouldn't be affected at all

bhauman19:06:07

as long as deref works

kauko19:06:17

oh, cool!

kauko19:06:35

I can try making a PR. That would actually be first ever OS contribution to Clojure, yikes 😄

bhauman19:06:52

nope sorry it does neet to be an atom for the history to work

kauko19:06:59

It will take until next week though. I'm away for the rest of the week, we're celebrating midsummer here in Finland this weekend 🍻

bhauman19:06:28

if you search for atom in the devcards.core source

bhauman19:06:15

it will be helpful

bhauman19:06:28

but it might be more difficult than you think

bhauman19:06:08

and than I thought

bhauman19:06:18

yeah, the atom-like? function is already

(defn atom-like? [x] (and (satisfies? IWatchable x) (satisfies? IDeref x)))

bhauman19:06:55

so there are some other things going on