Re: Programming Clojure sample code: fixes for breaking changes

2009-01-24 Thread Joshua Fox
A related point about the validator function (for Refs), possible the result of the same change in the Clojure codebaseOn page 133 of Beta 5.0, (def messages (ref () :validator validate-message-list) The code samples, using, the bundled clojure, do work. However, right above the code on p.

Re: Programming Clojure sample code: fixes for breaking changes

2009-01-24 Thread Stuart Halloway
Thanks Joshua, This is fixed in the next beta. Stuart A related point about the validator function (for Refs), possible the result of the same change in the Clojure codebase On page 133 of Beta 5.0, (def messages (ref () :validator validate-message-list) The code samples, using,

Programming Clojure sample code: fixes for breaking changes

2009-01-16 Thread Stuart Halloway
Long, long ago (Tuesday) when Beta 5 of the book shipped, there were some breakages in the sample code due to changes in clojure-contrib. I believe everything is now fixed in the github repository (http://github.com/stuarthalloway/programming-clojure ). Summary of the issues: 1.

Re: Programming Clojure sample code: fixes for breaking changes

2009-01-16 Thread Stuart Halloway
Hi Telman, The signature for agent has changed. Use: (def counter (agent 0 :validator number?)) I will update the prose in Beta 6. Stuart I keep running into the following problem trying to supply agent validation function. Here is sample code from page 135 (from book version beta

Re: Programming Clojure sample code: fixes for breaking changes

2009-01-16 Thread Telman Yusupov
Thank you very much, Stuart! I think it's a good idea for me to start reading Clojure source code and keep track of the changes, as the language changes so quickly... On Jan 16, 10:02 am, Stuart Halloway stuart.hallo...@gmail.com wrote: Hi Telman, The signature for agent has changed. Use: