[racket] The behaviour of (list 'one 'two 'three)

From: Mike G. (mikeg at psg.com)
Date: Thu Jan 30 01:02:42 EST 2014

Colin Gan said:
> Hi people,
>
> The aforementioned s-exp produces the result (one two three). I find this
> surprising as I do not expect the *list *procedure to unquote the symbols
> passed to it.
>
> Could someone explain why this is so?

You may be getting a different result if you're using one of the output
procedures.

(for-each (λ (proc)
            (begin (proc (list 'one 'two 'three))
                   (newline)))
          (list display print write))



Posted on the users mailing list.