Compatibility (M9)

Trine 1.0 makes one promise: a program that works keeps working, and keeps meaning the same thing. This page says exactly what that covers.

What is stable

promise
the languageSPEC.md 1.0: every program it accepts keeps being accepted and keeps its behavior, per edition
definition hashesa definition's hash (HASHING.md) never changes for the same definition: stores, trine semdiff, rename hints and trine.lock keep working across versions
built-in functions and library namesnone is removed or changes meaning; new ones may be added (a program's own definition of a name always wins)
the command linethe commands and flags in CLI.md marked stable
--json diagnosticsthe shape (AGENTS.md) and the error codes; new codes may appear
trine.toml, trine.lock, .trine/read by every later version
capabilities and grantsa program never gets authority it didn't have; grant flags keep their meaning

What is not

Editions

A breaking change to how source is read can only come with a new edition (SPEC.md §6):

editionwhat changedmigration
0.9(the language before 1.0)
1.0async, await, test, unsafe are reserved wordsrenames those names (test → test_)

Versions

The compiler follows semantic versioning from 1.0.0: a minor release (1.1, 1.2) adds and never breaks a program that works; a patch release (1.0.1) fixes bugs. A 2.0 isn't planned: breaking changes to how source is read come as editions instead, which every 1.x compiler keeps compiling. trine version prints the compiler's version, the language version and the editions it knows. Release notes: CHANGELOG.md.

Deprecation

Something that will go away in a new edition first gets a trine lint warning, for at least one release, and the warning names the replacement. Nothing is removed from an existing edition.

Kept honest by tests