[racket] Quoted expressions in #lang racket

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun Sep 18 10:38:38 EDT 2011

At Sun, 18 Sep 2011 16:15:58 +0200, Racket Noob wrote:
> In Common Lisp or Clojure REPL, expression '(1 2 3) evaluates to (1 2 3).
> But in #lang racket the same expression evaluates to '(1 2 3). 
> Why? 		 	   		  

In Racket, as in Common Lisp and Clojure, the expression

 '(1 2 3)

produces a list of three numbers. The only difference in this case
among the languages is how they print. Racket's default printing mode
prints values in the REPL in the same way as expressions, so it prints
the list of three numbers as

 '(1 2 3)




Posted on the users mailing list.