[racket] Quoted expressions in #lang racket
[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:
http://docs.racket-lang.org/reference/Writing.html#(def._((quote._~23~25kernel)._print-as-expression))
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.