Migrating from edition 0.1
Release v0.4.0
Change edition = "0.1" to "0.2" in una.toml, then check. What can change:
- New keywords.
edit,take,oldandtogetherare keywords, andforstarts a loop: rename bindings that use them. - Messages.
var,while,loop,asyncandawaitpoint tolet edit,forandtogether. - Equality on type parameters needs
Eq: a public generic function that compares values ofTwrites[T: Eq](U2026). Edition0.1inferred the bound. - The prelude.
min,max,containsandsumare generic over constrained types,sort,set,empty_mapand the typeMapare new (a user kind namedMaporEntrymust be renamed), andmap,filter,first_whereandfoldtake effectful and failing functions (uses of,fails of). - Kinds. Recursive kinds no longer need a
ListorOptionfield, but must have a finite value;I8toU64become built-in types, and a kind, variant or capability named like any built-in type,Int,Nat,Bool,Text,Unit,Hashed,List,Option,Result,MaporI8toU64, is U1002 (ADR 0079). A package that declares its ownkind Resultrenames it before it moves to edition0.2. - Integers. Values of a fixed-width type now carry overflow obligations;
Intcode is unchanged.
The same module can stay in edition 0.1, where for example type keeps its hint and edit is still reserved:
una
-- edition 0.1
-- fails with U0103
module demo
pub change(edit: Int) -> Int = edit