[plt-scheme] Why isn't the car of a list of symbols a symbol?

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Thu Jul 9 16:21:53 EDT 2009

On Thu, Jul 9, 2009 at 3:18 PM, Carl Eastlund<carl.eastlund at gmail.com> wrote:
> Following those rules, '('yes 'no) is (quote ((quote yes) (quote
> no))), and it produces the value ((quote yes) (quote no)).  Apply
> those two rules, and quote shouldn't have any more surprises.

((quote yes) (quote no))

is not a value. It is an application expression.

The way to keep your sanity here is to think of the printer as
stripping off the outer quote when it prints out a value.

Robby


Posted on the users mailing list.