It seems a bit too clever for me. FWIW. <br><br>Robby<br><br>On Thursday, September 8, 2011, Matthew Flatt <<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>> wrote:<br>> At Thu, 8 Sep 2011 17:48:46 -0400, Eli Barzilay wrote:<br>
>> Does this mean that `define-for-syntax' becomes as deprecated as<br>>> `require-for-syntax' etc, right?<br>><br>> At the moment, `define-for-syntax' seems like a more useful shorthand<br>> than `require-for-syntax', but maybe not if `for-syntax' works as<br>
> `begin-for-syntax'.<br>><br>> I changed the use of `define-for-syntax' in the Guide to<br>> `begin-for-syntax', though.<br>><br>>> Also, does `provide' work fine in a `begin-for-syntax'?<br>
><br>> Yes.<br>><br>>> Assuming that it is, it could have been nice to have it called just<br>>> `for-syntax', since<br>>><br>>> (for-syntax (require foo))<br>>><br>>> becomes equivalent to<br>
>><br>>> (require (for-syntax foo))<br>><br>> Overloading `for-syntax' in that way reminds me of the `begin' pun<br>> (expression sequencing versus definition splicing). But maybe this one<br>
> is ok, because definitions and `require'/`provide' forms are completely<br>> distinct positions, unlike expressions and definition sequences.<br>><br>> We'd have to keep `begin-for-syntax' for compatibility. Also, for<br>
> layering reasons, I think it's best to keep `begin-for-syntax' as the<br>> core form.<br>><br>> I'm ambivalent overall, so I'll wait for others to chime in.<br>><br>> _________________________________________________<br>
> For list-related administrative tasks:<br>> <a href="http://lists.racket-lang.org/listinfo/dev">http://lists.racket-lang.org/listinfo/dev</a><br>>