Hi,
I've been rereading "Programming Clojure" and on page 25 it says
The whole language is there, all the time. Paul Graham's essay
"Revenge of the Nerds" explains why this is so powerful.
So, I read Paul Graham's essay, and the relevant section seems to be
The whole language there all the time. There is no real
distinction between read-time, compile-time, and runtime. You can
compile or run code while reading, read or run code while
compiling, and read or compile code at runtime.
Running code at read-time lets users reprogram Lisp's syntax;
running code at compile-time is the basis of macros; compiling at
runtime is the basis of Lisp's use as an extension language in
programs like Emacs; and reading at runtime enables programs to
communicate using s-expressions, an idea recently reinvented as
XML.
The part "Running code at read-time lets users reprogram Lisp's
syntax" caught my attention. Is this talking about reader macros? I
believe I read that clojure doesn't have reader macros, so would it be
more accurate to say "The whole language is there, _most_ of the
time"?
Just curious,
Jeff
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en