This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: Reintroducing old `defined?'
Mikael Djurfeldt <mdj@nada.kth.se> writes:
> > Yes, that has always been the promise.
>
> It's actually more than a promise. Guile already has syntax-case
> macros, although they aren't yet implemented on low-level.
Sorry for being a wise-acre.
> Say (use-syntax (ice-9 syncase)) in a recent snapshot. (I think
> there's some trouble with the use-syntax form in 1.3.)
>
> (The above actually introduces a transformer which parses all code.
> This is necessary to get 100% pure behaviour, but in most cases
> (use-module (ice-9 syncase)) works as well, and doesn't require code
> transformation.)
Cool.
> > > Many people got scared of hygienic macros after seeing the low-level
> > > macro facility in R4RS. In addition to providing the easy-to-use
> > > high-level facility from R5RS (`syntax-rules'), syntax-case macros
> > > also support *easy-to-use* low-level power!
> >
> > But how do I learn them? I have a lovely learning device for
> > defmacro's, Graham's 'On Lisp', but I couldn't find anything about how
> > to pick up syntax-case.
>
> Kent Dybvig has written a wonderful book "The Scheme Programming
> Language" the 2nd ed. which has recently been published. This book
> also exists on-line. Have a look at
>
> http://www.scheme.com/tspl2d/syntax.html
The information that I've gotten on this thread is all fabulous FAQ
fodder.
-russ
--
mainstream, adj. fanatically opposed to anything at all unusual.