Open jpmonettas opened 5 years ago
Created a PR that fixes this issue (https://github.com/mpdairy/posh/pull/34)
While it may be possible to use floating point ids in Datascript, I'm not sure its a good idea. There are likely performance implications, and I'd suspect you should be able to get around this by casting as an int.
I went for a reading and javascript stores everything as double precision floating point numbers, following the IEEE 754 standard. So everything is just 64 bit numbers where the number (the fraction) is stored in bits 0 to 51, the exponent in bits 52 to 62, and the sign in bit 63.
Looking at clojurescript code for "int casting" it just strip decimal places.
I think is a nice property to have posh pull interface to follow datascript pull one.
Steps to reproduce: