Changes between Version 51 and Version 52 of Clojure Client Tutorial
- Timestamp:
- Aug 8, 2011 3:25:46 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Clojure Client Tutorial
v51 v52 30 30 Some advice for clojure programming: 31 31 * There is no solid way to debug clojure code, so stick to small functions that you can test in the REPL. 32 * :pre and :post conditions are excellent features of the language. Here is an example [http://blog.fogus.me/2009/12/21/clojures-pre-and-post].32 * :pre and :post conditions can be used to put constraints on functions. Here is an example [http://blog.fogus.me/2009/12/21/clojures-pre-and-post]. 33 33 * Leiningen provides "compile" and "run" commands: NEVER USE THESE (unless you want java interop, then you must be careful to recompile the function you wish to export, before running them in the REPL). 34 34 * If you define a record in a namespace and wish to access it in another, you must explicitly import it with the ":import" keyword in your namespace declaration.