Skip to content

Commit

Permalink
Bein more presise on what is mutable in readme file.
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyle committed Apr 4, 2012
1 parent 6f79dcc commit fcfdc9d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.textile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
h1. Small repo showing mutability of Vars
h1. Small repo showing mutability of Vars/Namespaces

In Clojure it is a convention not to change Vars in production systems, but Clojure itself will not stop you from doing bad things. The reason for this "utility" is so that the repl can function well.
In Clojure it is a convention not to "change Vars" in production systems, but Clojure itself will not stop you from doing bad things. The reason for this "utility" is so that the repl can function well.

For the record, the only official way to change a Var is through thread local binding.
It is not really the Var itself that is mutated rather the Var root binding, or the actual namespace in which it is located.

For the record, the only official way to change a Var is through thread local binding, or the alter-var-root function.

This leiningen project is set up so that it is compiled ahead of time. So you can run the code by:

Expand Down

0 comments on commit fcfdc9d

Please sign in to comment.