[racket] Quoted expressions in #lang racket

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Sun Sep 18 17:53:40 EDT 2011

[CCing the Racket mailing list]

> Yes, I got this to work. But, what if I don't want to use DrRacket, but just
> pure old console Racket.exe instead? Or emacs?

Oh!  Then it should just print like Lisp mode, if I remember
correctly.  Give me a sec; let me double check that.

$ racket
Welcome to Racket v5.1.2.
> (list 1 2 3)
'(1 2 3)

Oh!  So I'm wrong about that.  No problem.  Let me just change a
parameter here...

> (print-as-expression #f)
> (list 1 2 3)
(1 2 3)

Ok, now it should behave as you expect.  I'm using the
print-as-expression parameter here to control the default printer.
For reference:


If you want to make that the default on your end, I think you can add
a line to your $HOME/.racketrc, so that this parameter is up
automatically when Racket's being run as a repl.

Posted on the users mailing list.