Fork me on GitHub
#datomic
<
2016-02-01
>
ghufran03:02:43

Hi all, I’m going through the datomic tutorial at http://docs.datomic.com/tutorial.html , and trying to understand the samples/seattle/getting-started.clj file in the free datomic distribution. The transactions have an @ symbol before the form, e.g. `;; submit seed data transaction @(d/transact conn data-tx)` . What does this symbol signify? Is this a clojure annotation of some kind, or specific to datomic?

ghufran03:02:46

never mind, managed to find it by googling “at sign clojure”, found this useful link https://yobriefca.se/blog/2014/05/19/the-weird-and-wonderful-characters-of-clojure/

luposlip08:02:49

OK @ghufran, so you are now aware that the transact function returns a future, that you deref with the @ sign? This code is identical:

(deref (d/transact conn data-tx))