programs are deterministic, dependencies are immutable
run anywhere, managed effects allow programs to declare runtime requirements
A sound structural type system guarantees programs never crash
let string = @standard:1.stringlet ask = perform Prompt("What is your name?")let name = match ask {Ok (name) -> nameError (_) -> "World"}let greeting = string.append("Hello, ", name)perform Alert(greeting)
let user = {age: 71, name: "Eve"}let total = !int_add(10, "hello")let address = user.addresssum
let exec = (_) -> { ... }handle Alert((value, resume) -> { ... }, (_) -> { ... })
{
alerts: [
"hello world!"
]
return: "done"
}let {http: http} = @standard:1let request = http.get("catfact.ninja")let request = http.path(request, "/fact")match perform Fetch(request) {Ok ({body: body}) -> !string_from_binary(body)Error (_) -> Error({})}