Section 7

Archetypes

The shape you make instances of — the concept the language is named after.

Everything you have written so far fit inside a single object: one instance, some methods, and start to orchestrate it all. Section 1.2 promised the other half — “the type with several instances, the language’s central concept, which we will meet”. This is it.

An archetype is a shape; the program makes instances of it, each with its own values. This section lays down the philosophy of the concept, then the shape, the state, and the constructor.

In this section