Language Tour

A quick tour of values, control flow, and expression-oriented syntax.

Jot is expression-oriented: blocks evaluate to values.

fn classify(n: Int) -> String {
  if n < 0 { "negative" }
  else if n == 0 { "zero" }
  else { "positive" }
}

Bindings

let port = 8080
let host = "127.0.0.1"

Collections

The standard library is evolving. Current collection APIs are intentionally small. Expect iteration and module APIs to expand during the early releases.