On Sat 29 Jan 2011 04:07, Noah Lavine <noah.b.lav...@gmail.com> writes:

> Yes, the binding stuff actually seemed very weird to me too, mostly
> because it's very non-idiomatic. More specifically, the peg module
> does most of its code generation in regular functions rather than
> macros. safe-bind implements hygiene for these code-generating
> functions. It's basically what you'd get with defmacro.

It's perfectly fine for regular functions to use `syntax' or
`quasisyntax' to build up a result, in the hygienic context.

Syntax transformers are just functions that transform syntax to syntax.
See the manual for more.  I recommend reading the entire "Macros"
section.

Andy
-- 
http://wingolog.org/

Reply via email to