004. Editions, and old spellings as errors with their rewrite
A project names the edition of the language it is written in. Nothing old is read: an old spelling, form or name is an error, and it comes with an automatic rewrite.
- Status: Accepted.
- Date: in steps, from edition 0.12 to edition 1.0; recorded here on 2026-11-23.
- Supersedes: none.
- Superseded by: none.
Context#
The language changed as it grew. Keywords got clearer names (msg became
message, porttype became port-type). Some things could be written in two
ways, such as a link to a requirement written from either end. Libraries
renamed their declarations too (the store's Led became GpioLed).
Reading both the old and the new form kept old models building. But a reader, a tool or an agent then met two ways of saying one thing. Up to 0.12, an old keyword was read with a warning, and the warnings were easy to ignore.
Decision#
The full text is Editions and the stability promise. In short:
- A project says its
edition. Edition 1.0 starts the stability promise: a model written with the core keeps its meaning in every 1.x edition. - An old spelling, an old form or an old name is an error, in every edition and without one. It is never read silently.
- Each such error comes with its rewrite:
archec fmtfor spellings and forms,archec fixfor renamed names,archec refactor move-tracesfor links moved to the other end. The editor offers the same as a quick fix. - A library declares its renames with
renamed, for the edition the rename is made for. - Extensions follow the same rule when they change, but they may change in any edition.
The steps: in 0.12 an old spelling became an error, and in 0.13 a second way of writing a thing did. Since 0.16 both are errors in every edition. Edition 1.0 reads a model as 0.13 does.
Consequences#
- There is one way to write each thing, for people, tools and agents alike.
- Upgrading a project means running
archec fmtandarchec fix. - Every rename costs a rewrite rule and a test, written with the rename.
- The promise does not cover generated code, the text of messages or the layout of command output.