On May 12, 12:17 am, Mark Reid <[email protected]> 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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---