Slide 5 of 37
Scalar types
proc main(): void {
Str name = "bee"
Int count = 42
Float weight = 3.14
Bool ready = true
Atom state = #Ready
echo "{name} {count} {weight} {ready} {state}"
}
Str holds UTF-8 text. Int is a 64-bit signed integer whose overflow wraps silently. Float is a 64-bit float. Bool is true or false. Atom is an interned symbol, written #Name — a label, not a condition, so `if flag` is a compile error when flag is an Atom. void is a return type only; there is no void value, field or element. There is no implicit numeric widening anywhere: an Int never becomes a Float on its own.