On Fri, 29 Oct 2010 06:30:27 +0530
Santosh Rajan <santra...@gmail.com> wrote:

> On Fri, Oct 29, 2010 at 1:58 AM, Mike Meyer <
> mwm-keyword-googlegroups.620...@mired.org>
> > 3) You need it to get the API syntax you want (most commonly, a DSL).
> This last point is what I consider the most powerful feature of any
> language. And thats what makes Lispy languages a class apart. Use a macro
> where ever a particular type of problem, or solution to it, can be expressed
> more clearly using a macro, and the type of problem reappears more than
> once.

I disagree - but I'm a big fan of code that writes code (this would be
the second case - moving computations into the compiler). Computers
are a "multiplier", in that they multiply the number computations (for
a loose definition of computation) that a single human can do by many
orders of magnitude. Macros (or code that writes code) make writing
code become the computation being multiplied.

LISP macros are the most effective way I know of writing code that
writes code. The alternatives involve multiple languages, or writing
files that are then fed back to the language processor.

     <mike
-- 
Mike Meyer <m...@mired.org>             http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

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