The syntax changes from the examples in the "Small Schema" to the real scheme

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

First of all, as the DrScheme language, I chose Pretty Big(one of the Legacy Languages).
Is it right to try examples from the book?


Regarding syntax changes, I noticed that, for example, I need an identifier prefix with help 'for them to work.

For instance:

(rember 'jelly '(peanut butter jelly))

Are there any other changes (syntactic or not) that I need to know when trying examples from the book "Little Schema"?

+3
source share
2 answers

IIRC, the book uses a different font for the cited pieces of data and in real code circuitry that requires the use of quotation. Regarding your use of the PLT Scheme, the "Pretty Big" language does exist as an obsolete language. You must use the language Module, and all files start with #lang scheme(which should be there by default).

(The "new" way to use different languages ​​in DrScheme should always be in Module"and specify the actual language using a string #lang.)

+5
source

. " " . ( .)

+2

Source: https://habr.com/ru/post/1726646/


All Articles