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

2014-08-17 Thread Alexander D. Knauth
On Aug 17, 2014, at 2:29 PM, Carl Eastlund wrote: > Comparing lexical context is a very involved process. Remember that every > syntax object potentially carries context for an unbounded number of symbol > names at an unbounded number of phases, since context information can be > transferred

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

2014-08-17 Thread Carl Eastlund
Comparing lexical context is a very involved process. Remember that every syntax object potentially carries context for an unbounded number of symbol names at an unbounded number of phases, since context information can be transferred freely. Comparing all of them for equivalence would be quite e

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

2014-08-17 Thread Alexander D. Knauth
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 wrote: > Maybe something of > > h

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

2014-08-17 Thread Roman Klochkov
Maybe something of http://docs.racket-lang.org/reference/stxcmp.html ? Sat, 16 Aug 2014 23:32:10 -0400 от "Alexander D. Knauth" : >Is there any way to check whether two syntax objects have the same lexical >information, syntax-e (recursively), source location, properties, and whatever >else

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

2014-08-16 Thread Alexander D. Knauth
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 lexi