unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* syntax-local-value
@ 2011-12-04 19:22 Stefan Israelsson Tampe
  2012-01-06 19:16 ` syntax-local-value Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Israelsson Tampe @ 2011-12-04 19:22 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 611 bytes --]

In looking at racket syntax-parse there seems to be some advanced macrology
that is not included in guile.

The light now is on the possibility to attach data to macros. I figure that
I could
reproduce this by using a weak hash-table but miss the functionality of

syntax-local-value

e.g.
http://docs.racket-lang.org/reference/stxtrans.html#%28def._%28%28quote._~23~25kernel%29._syntax-local-value%29%29

Basically the possibility to get the macro-object associated to a symbol in
an environment if I have understyand this.

So is there a guile feature that matches this at a reasonable level?

Regards
Stefan

[-- Attachment #2: Type: text/html, Size: 798 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: syntax-local-value
  2011-12-04 19:22 syntax-local-value Stefan Israelsson Tampe
@ 2012-01-06 19:16 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2012-01-06 19:16 UTC (permalink / raw)
  To: Stefan Israelsson Tampe; +Cc: guile-devel

On Sun 04 Dec 2011 20:22, Stefan Israelsson Tampe <stefan.itampe@gmail.com> writes:

> In looking at racket syntax-parse there seems to be some advanced macrology
> that is not included in guile.

Indeed :)

> syntax-local-value
>
> e.g.
> http://docs.racket-lang.org/reference/stxtrans.html#%28def._%28%28quote._~23~25kernel%29._syntax-local-value%29%29

We don't have this.  It wouldn't be too hard to implement though; want
to give it a try?

What is it used for, though?

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-06 19:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-04 19:22 syntax-local-value Stefan Israelsson Tampe
2012-01-06 19:16 ` syntax-local-value Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).