kex docs Guide 0.4.0-alpha

Overview

Kex is a functional language with Ruby-like syntax, immutability by default, and an Elixir-style process model.

Values

Everything is a value, and values are immutable unless you say otherwise:

kex
let name = "world"
IO.printLine("hello, ${name}")

Immutability is the default, not a mode. var opts out of it for one binding.

What you get

  • UFCS — xs.map(f) and map(xs, f) are the same call
  • Traits — behaviour shared across types
    • with defaults
    • and required methods
  • Processes — isolated, message-passing, supervised
FeatureStatus
Type checkeron by default
BEAM codegendefault backend

See the reference for the standard library.