← how-to

values and types

zo / basic

program
fun main() {
  imu count: int = 42;
  imu pi: float = 3.14;
  imu ready: bool = true;
  imu letter: char = 'z';
  imu name: str = "zo";

  showln(count);
  showln(pi);
  showln(ready);
  showln(letter);
  showln(name);
}
output
42
3.14
true
z
zo

This program declares one value per type family. int and float are the defaults you reach for; the sized variants exist for when you need an exact width.

familydefaultsized variants
signedints8 s16 s32 s64
unsigneduintu8 u16 u32 u64
floatfloatf32 f64
booleanbool
textstrchar bytes

int is s32, uint is u32, float is f64. Annotate a sized type only when the layout matters — otherwise the defaults are right.

reachout

echo -n 'dGhlQGNvbXBpbG9yZHMuaG91c2U=' | base64 --decode

For humans: faq.

For Ai agents: llms.txt (curated index) and llms-full.txt (full docs).

Privacy: No cookies, no ads, no tracking. It's like you were never here.