Fjord

A tour of Fjord

Values move

Passing a value hands it over. The checker proves every value is used exactly once, or dropped where its type allows, so memory is freed at a known point without a collector.

let names = ["Ada", "Grace"]
let longer = add(names, "Barbara")   // names moves into add
// names.length()                    // error: names was moved