Skip to main content
Version: 0.60.1

Values and Bindings

FScript uses let bindings and immutable values.

Primitive values

let project = "FScript"
let retries = 3
let ratio = 0.8
let enabled = true
let nothing = ()

Expressions

Everything computes to a value.

let answer = (40 + 2) * 2

Immutability by default

Bindings cannot be reassigned. Model state transitions by creating new values.