Re: [racket] Understanding lexical context

2013-10-01 Thread Sam Tobin-Hochstadt
On Tue, Oct 1, 2013 at 3:01 PM, Greg Hendershott wrote: > > Is there a generically safe/sane way to write such macros? > > Could some mechanism be devised to help do this -- much like > syntax-parameters enables you to write anaphoric-if and friends > safely/sanely? The right answer, I think, is

Re: [racket] Understanding lexical context

2013-10-01 Thread Greg Hendershott
Aha. Maybe the following question won't make any sense after I've digested the implications, but to ask anyway: I'm completely sold on "keeping it clean", and for example using syntax parameters when possible. That leaves at least one use case, which is what I'll call (not knowing a better phras

Re: [racket] Understanding lexical context

2013-10-01 Thread Sam Tobin-Hochstadt
On Tue, Oct 1, 2013 at 2:42 PM, Greg Hendershott wrote: > > 2. Plus it seems like it would be really unfortunate if carefully > choosing one of #'a or #'b were required -- because that would mean > `inner` couldn't be written to be usable by other macros independent > of knowing the origin of what

Re: [racket] Understanding lexical context

2013-10-01 Thread Greg Hendershott
Thanks for the quick reply! On Tue, Oct 1, 2013 at 2:13 PM, Sam Tobin-Hochstadt wrote: > On Tue, Oct 1, 2013 at 2:01 PM, Greg Hendershott > wrote: >> >> tl;dr: Can anyone suggest how I could improve my >> understanding of this? Enough that I could improve Fear of >> Macros and help others, too?

Re: [racket] Understanding lexical context

2013-10-01 Thread Sam Tobin-Hochstadt
On Tue, Oct 1, 2013 at 2:01 PM, Greg Hendershott wrote: > > tl;dr: Can anyone suggest how I could improve my > understanding of this? Enough that I could improve Fear of > Macros and help others, too? Thanks in advance. If you've read the resources you described, then you're definitely prepared