[plt-scheme] scribble ultra beginner: macros

From: Ryan Culpepper (ryanc at ccs.neu.edu)
Date: Tue Apr 27 21:42:43 EDT 2010

Eric Tanter wrote:
> On Apr 27, 2010, at 6:26 PM, Ryan Culpepper wrote:
>> @schemeblock uses #, as an escape, so that you can insert computed
>> text into code snippets.
> 
> just in case: wouldn't it be better to use an escape that is
> different from unquote-syntax? (eg. @, or something like that)
> 
>> Try using @SCHEMEBLOCK instead.
> 
> That works fine, thanks! (but of course, if I would want to have a
> code snippet that uses both unquote-syntax and computed text, I would
> be blocked -- I guess I could just use "unquote-syntax" instead of
> the #, shortcut)

SCHEMEBLOCK also has an escape; it uses UNSYNTAX.

Ryan



Posted on the users mailing list.