May 2018
Beginner to intermediate
290 pages
6h 43m
English
If you have read this far you probably noticed something odd about the syntax of Clojure code: it looks a lot like the syntax of Clojure data literals. If, for example, you started with this bit of nonsensical Clojure data:
| | ;; Just some data: Note the quote. |
| | |
| | '(helvetica times-roman [comic-sans] |
| | (futura gil-sans |
| | (courier "All the fonts I have loved!"))) |
you know you have a four-element list that contains a couple of symbols along with a vector and another list. But by swapping out the symbols and changing contents of the string, you can transform that data into something convincingly codelike:
| | ;; Still just data -- note the quote. |
| | |
| | '(defn print-greeting [preferred-customer] |
| | (if |
Read now
Unlock full access