[racket-dev] A curious question about quote

From: J. Ian Johnson (ianj at ccs.neu.edu)
Date: Wed Jan 26 11:02:32 EST 2011

Hello all. I have a historical question about quoted constants. Does anyone know why '1 = 1? My intuition is that this is an artifact of conflating quote with list constructors. Is that indeed the case?

> (equal? '('1 '2) '(1 2))
#f
> (equal? (list '1 '2) (list 1 2))
#t

Thanks,
-Ian


Posted on the dev mailing list.