[racket] is there any way to check whether two syntax objects have the same ... ?

From: Alexander D. Knauth (alexander at knauth.org)
Date: Sun Aug 17 14:02:09 EDT 2014

But those only work on identifiers, right?

But would something like this work?

(define (lexical-context=? s1 s2)
  (bound-identifier=? (datum->syntax s1 ‘x) (datum->syntax s2 ‘x)))

Or would that miss something?  



On Aug 17, 2014, at 1:31 PM, Roman Klochkov <kalimehtar at mail.ru> wrote:

> Maybe something of
> 
> http://docs.racket-lang.org/reference/stxcmp.html
> 
> ?
> 
> 
> Sat, 16 Aug 2014 23:32:10 -0400 от "Alexander D. Knauth" <alexander at knauth.org>:
> Is there any way to check whether two syntax objects have the same lexical information, syntax-e (recursively), source location, properties, and whatever else they have, even if they aren’t eq?
> 
> For the syntax-e and source-location this is straightforward, but if there’s no accessor for the lexical information then how do I check if the lexical information is the same if the syntax objects aren’t eq?
> 
> And for the properties, can you only check the properties with keys that are interned symbols? 
> 
> 
> 
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
> 
> 
> -- 
> Roman Klochkov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140817/702cab3b/attachment.html>

Posted on the users mailing list.