A "killer" macro
- From: Eli Bendersky <eliben@xxxxxxxxx>
- Date: Wed, 12 Sep 2007 06:59:19 -0000
Hello all,
In short: I'm looking for a "killer" macro - a macro (or a couple of
related ones) that show what Lisp can do and other languages (those
without uniform syntax) can not.
A longer version: Many contemporary languages boast their sharing most
of the functional features of Lisp. Perl, Ruby, Javascript - all have
convenient lists (or arrays), functions as first class objects,
garbage collection, dynamic typing, lexical closures. However, one
thing they lack is uniform syntax, and hence the service of a powerful
built-in macro system such as Common Lisp's "defmacro".
When confronted by fellow programmers with the question "so why is
Lisp so special", I'm looking for that short - not too hard to
understand - snippet of code that will show them *why*. I'm convinced
that such a snippet must involve macros. But all the examples I ran
into so far have been either too simple - and could be easily
implemented another way (for example with Ruby's blocks), or too
complicated.
Any suggestions for such an example ?
Eli
.
- Follow-Ups:
- Re: A "killer" macro
- From: Gisle Sælensminde
- Re: A "killer" macro
- From: sharpquote
- Boost::ScopeExit [Re: A "killer" macro]
- From: D Herring
- Re: A "killer" macro
- From: fortunatus
- Re: A "killer" macro
- From: corey.abshire@xxxxxxxxx
- Re: A "killer" macro
- From: Dimiter \"malkia\" Stanev
- Re: A "killer" macro
- From: Emilio Lopes
- Re: A "killer" macro
- From: Thomas A. Russ
- Re: A "killer" macro
- From: Alan Crowe
- Re: A "killer" macro
- From: Ken Tilton
- Re: A "killer" macro
- From: Alex Mizrahi
- Re: A "killer" macro
- From: alkondratenko@xxxxxxxxx
- Re: A "killer" macro
- From: Pascal Costanza
- Re: A "killer" macro
- From: Christophe
- Re: A "killer" macro
- Prev by Date: Re: Is AllegroServe INSANE ?!(Or at least very buggy .. )
- Next by Date: Re: A "killer" macro
- Previous by thread: Is AllegroServe INSANE ?!(Or at least very buggy .. )
- Next by thread: Re: A "killer" macro
- Index(es):
Relevant Pages
|