views:

164

answers:

2

I have recently started following the examples from The Little Schemer and when trying out the examples in DrScheme, I have realised that there are some minor syntax changes from the examples in the book to what I can write in DrScheme.

First of all, as a language in DrScheme, I chose Pretty Big (one of the Legacy Languages).
Is this the correct choice for trying the examples in the book?


As regards the syntax changes I have noticed that, for example, I need to prefix the identifiers with a ' in order for them to work.

For example:

(rember 'jelly '(peanut butter jelly))

Are there any more changes (syntactical or not) that I need to be aware of when trying the examples from the 'The Little Schemer' book ?

+1  A: 

See the "Guidelines for the reader" section in the Preface. (I'm looking at the 4th edition here.)

Darius Bacon
yes but still, for example, the `'` thing is not mentioned there
Andreas Grech
That is mentioned on page 3, the first time it's needed. You do need to read everything in order; I'd forgotten to note that, as it's been years.
Darius Bacon
+3  A: 

IIRC, the book uses a different font for quoted pieces of data, and in real Scheme code that requires using quote. As for your use of PLT Scheme -- the "Pretty Big" language is really there just as a legacy language. You should use the Module language, and have all files start with #lang scheme (which should be there by default).

(The "new" way of using different languages in DrScheme is to always be in the Module "language" and specify the actual language using a #lang line.)

Eli Barzilay
+1 Thanks for suggesting the `Module` language and `#lang scheme`
Andreas Grech