"No one can be told what the matrix is."

Well, the best way to understand the macros is to try it out yourself. John
Lawrence Aspden published some really helpful tutorials om macros, and a
kata - try it! Links in the end.

There are some other code examples around, also look in the source-code of
clojure core and various clojure contrib libraries for a lot of examples,
some of which you have to contemplate and come back to later. They have
some macros in the code. Also beware that you most often don't want to use
macros in the first place, since you can solve most problems with the
incredible powerful functions as well.

Last but not least I would recommend getting some good books on Clojure, I
started with "Programming Clojure" of Stuart Halloway and it was really
helpful for me.

Most problems can be expressed as a sequences of key-value-maps to which
you apply map and reduce (or nowadays protocols for more speed). Be
prepared to spend some time getting your head around the transition to
functional, lazy, immutable code with macro-programming, it will be worth
it. You will still have good use of you java-knowledge, but will probably
structure your programs differently.

I also had great help of the beginning of Paul Grahams Practical Common
Lisp avail free at: http://pragprog.com/book/shcloj/programming-clojure

Macro kata:
http://www.learningclojure.com/2010/11/syntax-quote-kata-for-confused.html
Macro tutorial:
http://www.learningclojure.com/2010/09/clojure-macro-tutorial-part-i-getting.html
Clojure source code repositories: https://github.com/clojure/
Programming Clojure: http://pragprog.com/book/shcloj/programming-clojure

/Linus


2011/10/31 vikbehal <vikbe...@gmail.com>

> Can anyone give me some basic example which contained nested quotes
> and unquotes? with explanation at each step!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to