CMCDragonkai
CMCDragonkai
I really need it to compare based on pointer equality of the object itself. Are you saying to tag each object created with a special unique id before inserting into...
I found that `identical?` in CLJS maps directly to `===`: https://stackoverflow.com/a/13005218/582917
Thanks for the advice, however I'm not familiar with clojure. What would those 3 steps look like in JS?
Still I'm confused why would there be a different behaviour from using just `{}` vs `new DummyObj`. The code samples pointed out by @tonsky doesn't appear to deal with the...
Another test: ```js const d = require('datascript'); const obj1 = { x: 1 }; const obj2 = { x: 1}; const db = d.empty_db(); const db1 = d.db_with(db, [[':db/add', 1,...
@tonsky Have you tried running this? ``` const d = require('datascript'); const obj1 = { x: 1 }; const obj2 = { x: 1}; const db = d.empty_db(); const db1...
@rauhs Just a clarification, does this mean datascript cannot index things that are not ordered (like using hash indexing)? I just tried it: ``` Error: Cannot compare [object Object] to...
I'm making an adapter to make sure all my object keys are given unique numbers so they can be indexed by datascript. But I had a thought experiment as to...
Here we go: https://github.com/MatrixAI/js-object-tagger
BTW @rauhs even if I use object tagging to allow object keys to be indexed by proxy of the numeric tag. I still need to make sure my objects are...