Changes between Version 3 and Version 4 of Clojure Client Tutorial


Ignore:
Timestamp:
Aug 2, 2011 1:40:46 AM (13 years ago)
Author:
kedwar10
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Clojure Client Tutorial

    v3 v4  
    3232* If you want to ensure tail cail optimization, use the "recur" function instead of using your function name.  "recur" also works with loops.
    3333* "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.
    3436
    3537Now 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.
     
    4042client.core=>
    4143
    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.
     44Note 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.
    4345
    4446client.core=> (doc run-ioquake)[[BR]]