[racket] Another macro question: making a lexically binding keyword?
On Wed, May 9, 2012 at 11:16 AM, Eli Barzilay <eli at barzilay.org> wrote:
> A few minutes ago, Laurent wrote:
> >
> > So maybe a compromise would be to use parameters for most (anaphoric)
> cases,
> > but still allow to specify a lexically scoped ("hygienic") binding for
> > particular cases, e.g.:
> > (while #:abort top-while-abort #:it top-while-it
> > (while
> > ....use the usual `abort' for the inner loop or the
> `top-while-abort' to
> > escape the top while....)
> > ....)
> >
> > ?
>
> That makes it redundant, since if you have just the syntax parameters,
> you can replace this (for example):
>
> (while #:abort my-abort (condition)
> (code))
>
> with
>
> (while (condition)
> (define my-abort abort)
> (code))
>
>
Oh that's right, thank you (they're parameters, not just anaphores...).
Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120509/2d926ba0/attachment.html>