[plt-scheme] Help with understanding how to reuse macro data
On 1/3/09 12:48 AM, Jakub Piotr Cłapa wrote:
> On 1/2/09 11:18 PM, Joe Marshall wrote:
>> On Fri, Jan 2, 2009 at 2:10 PM, Grant Rettke<grettke at acm.org> wrote:
>>> This seems ok because the data specification is static. I only thought
>>> about this just now, so I didn't dig any deeper yet. Is this a
>>> reasonable approach? If so, what is the best way to approach it?
>>>
>>> What is the right/idiomatic solution here? Or is this bad idea?
>
> AFAIK just use define instead of define-syntax. syntax-case returns a
> normal function so this should work (maybe with some syntax->datum on
> the result). Or use match-lambda instead of syntax-case.
This is of course not really true but the idea should be ok. Check this
as well:
http://www.kimbly.com/blog/000447.html
--
regards,
Jakub Piotr Cłapa