Re: macro that writes macros
- From: Sacha <none@xxxxxxxxxxxx>
- Date: Sun, 30 Dec 2007 07:33:31 GMT
jordi.burguet.castell@xxxxxxxxx wrote:
(defmacro new-tag (name)
(let ((sname (string-downcase (symbol-name name))))
`(defmacro ,name (&rest content)
`(progn
(format t "<~a>~%" ,',sname)
,@content
(format t "</~a>~%" ,',sname)))))
This is the occasion for me to ask how to get rid of these ','symbol things. While in this case it's pretty obvious how they work, it sometimes make the code pretty hard to read and understand. I recently came up with a very subtle bug (for me anyways) using such syntax.
So what are you guys usually doing to avoid these ? Do you avoid these at all ?
Thanks in advance,
Sacha
.
- Follow-Ups:
- Re: macro that writes macros
- From: Pascal Bourguignon
- Re: macro that writes macros
- From: Dan Bensen
- Re: macro that writes macros
- References:
- macro that writes macros
- From: jordi . burguet . castell
- macro that writes macros
- Prev by Date: Re: Curses alternative for Lisp?
- Next by Date: Re: RFC: Extending method specializers
- Previous by thread: Re: macro that writes macros
- Next by thread: Re: macro that writes macros
- Index(es):
Relevant Pages
|