If Python had a macro facility similar to Lisp/Scheme (something like MetaPython), how would you use it?
If you are a Lisp/Scheme programmer, what sorts of things do y
Coming from a C-world, I'd really appreciate being able to do efficient logging of rich messages. Instead of writing
if logger.level > logger.DEBUG:
logger.log('%s' % (an_expensive_call_that_gives_useful_info(),))
with macros, one could instead do something like
DEBUG('%s' % (an_expensive_call_that_gives_useful_info(),))