I'm still trying to grok macros - which are amazing, but hard. I'd like to
know if it is possible capture part of the following expression
(display (+ 2 (bar (+ 1 2
if "bar" is a literal in the macro, I would like to capture body0 as (+ 1
2) and body1 as (display (+ 2 ...)).
This is a total
s meaning only depend on
its input.
-Ian
- Original Message -
From: "Chad Albers"
To: users@racket-lang.org
Sent: Tuesday, August 27, 2013 4:33:17 AM GMT -05:00 US/Canada Eastern
Subject: [racket] Macro Assistance
I'm still trying to grok macros - which are amazing, but
Generally these kinds of macros are not a good idea, because it's
difficult to combine them with other macros. It's probably better to
use a syntax-parameter like the suggestion in the other message.
The problem in your macro is that with syntax-case can't search bar
when it's nested at any deep l
Thanks for everyone's advice. I think I will take it and find another
solution. Thanks!
--
Chad Albers
On Wed, Aug 28, 2013 at 12:00 AM, Gustavo Massaccesi wrote:
> Generally these kinds of macros are not a good idea, because it's
> difficult to combine them with other macros. It's probably be
4 matches
Mail list logo