`syntax?` is #t no matter what.

`syntax-source-module` is close, but according to the docs, it can still be 
#f even if the syntax object has a lexical context.

I considered this:

(define (no-lexical-context? stx)
  (equal? stx (strip-context stx)))

But `equal?` doesn't work here. (Side question: does `equal?` ever return 
#t for syntax objects, other than the trivial case of `(equal? stx stx)`?)


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-dev/f1f6b0c5-4658-40d0-8b18-1fbc4a63eb08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to