Although this suggestion will not help for your immediate goal, the following book is full of great macros.
http://www.paulgraham.com/onlisp.html On Jan 25, 2013 9:49 AM, "Jason Felice" jason.m.felice@gmail.com wrote:
Hi!
Does anyone have any examples of macros which drastically improve readability or simplicity of code? Maybe neat hacks?
Not *deep* hacks that take a long time to understand, but things which can be used to illustrate why macros are powerful and awesome.
Background:
I'm giving a talk tomorrow on Scheme to prisoners in a job training program. The purpose is to expand their brains by exposing them to concepts they haven't seen before (they don't have Internet access).
The talk is about Scheme and "Code is Data". I've laid the foundation, but am getting to the point where I want to have some flashy and interesting uses of macros.
Any help would be appreciated.
Thanks, -Jason
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list