Re: Listcomprehension-macro? Macros with args inside macro-name?
- From: Frank Buss <fb@xxxxxxxxxxxxx>
- Date: Sat, 23 Aug 2008 02:22:27 +0200
defn noob wrote:
I am trying to learn lisp macros and I generally find
listcomprehensions to be elegant and they dont exist in lisp.
This has to be a macro right? Cant be a function?
Yes, it has to be a macro, if you need it fast and if you want your own
syntax, like used for list comprehensions in other languages like Haskell.
A nice example is this one, which was presented at ILC2007:
http://www.iro.umontreal.ca/~latendre/publications/listCompFinal.pdf
Maybe you should take a look at Liskell, too. Liskell is a new Lisp syntax
frontend for Haskell, so I assume it implements list comprehensions and it
might help to find a good Lisp-like syntax.
--
Frank Buss, fb@xxxxxxxxxxxxx
http://www.frank-buss.de, http://www.it4-systems.de
.
- References:
- Listcomprehension-macro? Macros with args inside macro-name?
- From: defn noob
- Listcomprehension-macro? Macros with args inside macro-name?
- Prev by Date: Re: Listcomprehension-macro? Macros with args inside macro-name?
- Next by Date: defun take-if, how to pass comparing function?
- Previous by thread: Re: Listcomprehension-macro? Macros with args inside macro-name?
- Next by thread: Re: Listcomprehension-macro? Macros with args inside macro-name?
- Index(es):
Relevant Pages
|