Mais conteúdo relacionado
Semelhante a Clojure - Revenge of the Verbs (20)
Clojure - Revenge of the Verbs
- 2. LISP
dynamic, functional, lazy
_not_ object-oriented
compiled (to JVM bytecode)
on-the-fly or ahead-of-time
- 5. Nothing nil
Booleans true false
Numbers 10 22.31 2/3
- 6. Strings ”foo”
Characters a space newline
Regexps #”[a-z]+”
- 7. Comments ;this is a hack
Symbols foo namespace/foo
java.util.BitSet
Keywords :foo :bar
- 8. Lists (a b c)
Vectors [1 2 3]
Maps {:a 1 :b 2}
Sets #{:a :b :c}
- 10. literals evaluate to themselves
vectors and maps are data
symbols are resolved
non-empty lists are calls
- 11. calls (operator operands*)
special forms def if let fn
macros and defn time
functions + = str println
large sequence library
- 16. Project http://clojure.org
Presentations http://clojure.blip.tv
Book “Programming Clojure” (beta)
http://pragprog.com/titles/shcloj
TextMate Bundle http://github.com/
nullstyle/clojure-tmbundle/