On Wed, Nov 25, 2009 at 11:01:32PM +0100, Meikel Brandmeyer wrote:

>(defmacro lazy-seq
>  "..."
>  [& body]
>  `(LazySeq. ~(with-meta `fn* {:once true}) [] ~...@body))

It's also probably good to explain why fn* is quoted with backquote
rather than a regular quote.  This took me a while to figure out, and
I've only found an explanation inside of one of Rich's talks.

A lot to learn even from the REPL, just by doing:

   => 'list
   list
   => `list
   clojure.core/list

As I understand it, the backquoted one will be qualified in the
namespace the macro is in and not be "bothered" by the user's
namespace having something defined under that name as well.

David

-- 
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