Encapsulation in Clojure


/ Published in: Lisp
Save to your folder(s)

Using closures in order to encapsulate access to data (in this case the counter is thread safe atom).

URL: http://blog.thinkrelevance.com/2009/8/12/rifle-oriented-programming-with-clojure-2

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.