[racket] how does equal? determine with syntax objects?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Aug 8 01:07:26 EDT 2014

At Thu, 7 Aug 2014 17:58:29 -0400, "Alexander D. Knauth" wrote:
> How does equal? determine whether two syntax objects are equal?
> 
> Does it simply use eq?, or does it check the syntax-e, lexical
> context, srcloc and properties?

It uses `eq?`.

The general rule is that `equal?` uses `eq?` unless a data type is
documented otherwise, but a clarification in the docs seems worthwhile
in the case of syntax objects.


Posted on the users mailing list.