Reference

Concise reference for Arandu v0.1. Use for quick lookup.

Primitive types

Type Description Size
int Signed integer target-dependent size
f32 Floating point 32 bits
f64 Floating point 64 bits
bool Boolean 1 logical bit
str Text sequence immutable

Generics

Type Use
Option<T> T may not exist — Option.Some(v) or Option.None
Result<T, E> May fail with EResult.Ok(v) or Result.Err(e)
Vec<T> Dynamic sequence of T

Ownership qualifiers

Qualifier Meaning
own Ownership. Transfers ownership; the receiver frees.
ref Borrow. Does not copy, does not take ownership.
mut Mutability over a value from a ref.

shared is reserved for the shared ownership model (planned).

Operators

Operator Use
? Propagates an error from Result/Option
-> Function-type flow/return (planned)
=> Arm body in match
== / != Equality / inequality
&& / || Logical AND / OR

Keywords

module import func struct enum let return if else match for in defer errdefer public

Assertions

Function signatures follow the pattern:

public func Vec.push<T>(mut self, value: T): void

public is optional; mut self allows mutation; the return type comes after the :.