Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 30 Oct 2026. What's built · Install 0.1.0
jadpo
Reference: Logic

Logic

Variables

A variable never changes unless you write var mut, and every variable states its type (Values and types).

example
var needed: Stock = stock_needed(per_pack, packs)var mut total: Stock = neededtotal = Stock(total + holdback)
  • var names a value that never changes. var mut names one you can point at a new value of the same type, with name = value.
  • Only a var mut local can be assigned. Parameters, fields and declarations can't, because values never change (Values never change).
  • A variable is visible from where it is declared to the end of its block.
  • A name already in scope, a parameter included, can't be declared again.
  • A variable nothing reads is an error.

Markdown for agents: /docs/variables.md.Built from Jadpo main at a707efb.