Fork me on GitHub
#datascript
<
2018-11-17
>
lxsameer14:11:37

hey folks, I can't understand the reason behind this line of code https://github.com/tonsky/datascript/blob/master/src/datascript/db.cljc#L733

lxsameer14:11:45

can someone help me with it please ?

lxsameer14:11:01

what is the reason behind that hashmap

ClashTheBunny15:11:01

I think that's a clojure precondition.

ClashTheBunny15:11:03

All it says is that, before you even try to do anything, make sure that (db? db) returns true. It checks to make sure that the right things are being passed (or returned) from the function.

lxsameer16:11:33

interesting, didn't know about them