January 2009
1 post
1 tag
Macro Patterns
I was talking about Lisp macros with Kyle and we decided to write down the patterns of different macros we’ve seen and what they allow you to do, with the intent of teaching others. Interesting things you can do with macros: resource management (e.g. with-open-file) behavior injection à la AOP (e.g. memoization, debug printing) alternate control-flow constructs alternate looping...
Jan 31st