Changes between Version 3 and Version 4 of Clojure Client Tutorial
- Timestamp:
- Aug 2, 2011 1:40:46 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Clojure Client Tutorial
v3 v4 32 32 * If you want to ensure tail cail optimization, use the "recur" function instead of using your function name. "recur" also works with loops. 33 33 * "Weird" error messages usually result from forgetting to specify the arguments during a function definition or from mismatched parenthesis. 34 * The function that you pass as an argument to swap! must be pure (as in no side effects). This is because the update to the atom is retriable so it may get called more then once. 35 * Atoms are your go-to way to manage state. 34 36 35 37 Now it is time to learn to use the client. cd to the top level directory and typu "lein repl". If everything went smoothly you'll see something about no rlwrap and the prompt. … … 40 42 client.core=> 41 43 42 Note that the "core" namespace has loaded. You can launch ioquake with a specific map using the " ioquake"(located in utilities.clj). Type (doc run-ioquake) to see the documentation.44 Note that the "core" namespace has loaded. You can launch ioquake with a specific map using the "run-ioquake" function (located in utilities.clj). Type (doc run-ioquake) to see the documentation. 43 45 44 46 client.core=> (doc run-ioquake)[[BR]]