On May 12, 12:17 am, Mark Reid <mark.r...@gmail.com> wrote:
> I guess what I'm really looking for now is the "how".

It's relatively easy to write a program that transforms Clojure source
code:

  (loop []
    (when-let [code (read *in* false nil)]
      ... do some transformation on code ...
      (prn transformed-code)
      (recur)))

But this sort of source-level transformation is rarely used in Lisp-
like languages.  A more typical approach would be to write a macro or
function that overrides some core function, then use that in your own
namespace.

-Stuart Sierra



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