Marde, Feb 3, 2009 at 14:24, Konrad Hinsen <konrad.hin...@laposte.net> skribis:
[...]
> I can't think of anything that would be "forbidden" in a macro but
> "allowed" in a plain function. There are many things that don't make
> sense in a macro, of course: launching agents, opening windows, ...

Well, for normal functions you have macros to avoid the usual eager
applicative rule of argument evaluation.
This allows you to build e.g. infinte data structures (assuing you
don't try to evaluate it all thus findining the limits of your JVM).
There is I think no equivalent for macros, i.e. you cannot write a
macro that expands into an infinite program (well, you can I guess but
the compiler will soon show you the limits of the JVM again).

    Holger

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