Re: macro that writes macros



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
.



Relevant Pages

  • Re: Glad to be back.
    ... to avoid all the ketchup spread around to get rid of around 1300 posts ... infection from the areas affected this time, ...
    (uk.people.silversurfers)
  • Re: To David H and Renia
    ... The best way to rid yourself ... > several of you to continue this childish behavior of yours ... > personal-attacks you and Renia are wrong. ... people's names--like this thread) should avoid posting in reply ...
    (sci.archaeology)
  • Re: Report Proves RLCs Cause Rear-End Collisions
    ... Alex Rodriguez wrote in ... practical and easiest way to avoid being a contributor? ... Get rid of them, of course. ...
    (rec.autos.driving)
  • Re: [PATCH 2/7] omfs: add inode routines
    ... If you could avoid the i_state member in omfs_inode_info, ... rid of your own inode cache entirely. ...
    (Linux-Kernel)
  • OLE action timeout message - how to extend the time
    ... I have an add-in which on occasion does take some minutes ... I would like to be able to control ... message 'Microsoft Excel is waiting for another ... be able to avoid the message and avoid calls to the help ...
    (microsoft.public.exchange.misc)