[racket] syntax-parse and literals
FWIW, I consider insisting on bindings a feature, because it promotes
well-behaved macros
Jay
On Fri, Sep 2, 2011 at 8:02 PM, Asumu Takikawa <asumu at ccs.neu.edu> wrote:
> On 2011-09-02 19:36:01 -0600, Jay McCarthy wrote:
>> syntax-parse requires literals to be bound, it will never match just
>> based on the identifier symbol
>
> You can get around this by using the ~datum pattern. There's a margin
> note next to the #:literals description that remarks on that.
>
> Cheers,
> Asumu
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users
>
--
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay
"The glory of God is Intelligence" - D&C 93