Re: #db/id[:db.part/db] throws an exception

2014-12-17 Thread Ryan Neufeld
There are still some errors in there. My bad. Someone came in with a pull request and I'll test it works. Generally all the code should have worked originally--I tested every recipe--but I may have missed one or two. -Ryan > On Dec 17, 2014, at 1:02 AM, edw...@kenworthy.info wrote: > > I've

Re: #db/id[:db.part/db] throws an exception

2014-12-16 Thread edward
Strangely making the change to my code didn't fix it (I got an exception about an uneven number of elements in a map) but copying and pasting your code -once I'd fixed the half dozen bracket and brace errors that have been introduced- it does work. Ta. On Wednesday, December 17, 2014 7:02:12 A

Re: #db/id[:db.part/db] throws an exception

2014-12-16 Thread edward
I've tried that already but then Clojure complains about there being an uneven number of elements in a map. Curious though: did the original code ever actually work? Is it something that was deprecated? Have to say I am happy if that's the case, the original seemed unnecessarily arcane where a

Re: #db/id[:db.part/db] throws an exception

2014-12-16 Thread Ryan Neufeld
Yeah, we shouldn't be telling you to use reader literals like that. Preferred is a call to (d/tempid ...). I'm updating the code now (https://github.com/clojure-cookbook/clojure-cookbook/blob/master/06_databases/6-11_schema.asciidoc) On Tuesday, December 16, 2014 2:01:00 PM UTC-6, edw...@kenwort

#db/id[:db.part/db] throws an exception

2014-12-16 Thread edward
I'm following the Clojure Cookbook recipe for defining a schema in datomic. One of the forms is: #db/id[:db.part/db] but this generates an exception "clojure.lang.ExceptionInfo: No reader function for tag id :: {:column 25, :line 27, :type :reader-exception}" Can anyone offer any insight? --