The word 50 version is that syntax-rules only allows a limited form of pattern rewriting, but syntax-case lets you write arbitrary functions that rewrite the syntax. A big reason for this being important is that you can write better error messages, but there are other things too, of course.
On Tue, Aug 9, 2011 at 11:05 AM, Prabhakar Ragde <plra...@uwaterloo.ca> wrote: > Neil Van Dyke wrote: > >> The hardest macro tasks, in "syntax-rules", >> become opportunities to show off how well one can do scary-looking CPS >> that's really expensive at expansion time. > > For my edification, as well as that of other macro newbies, can you give > some examples of this, and how syntax-case can be more expressive? Thanks. > --PR > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/users > _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users