Your first program
Create hello.vow:
fn main(caps: Caps) -> int { return 1 + 2;}Every program’s entry point is fn main(caps: Caps) -> int. Capabilities enter only here. If you never use caps, you still must declare it.
Build and run
Section titled “Build and run”vow build hello.vow -o hello./helloecho $? # 3Or:
vow run hello.vowTypes you already have
Section titled “Types you already have”- Integers:
int,int64(no implicit mix — useas) bool, heapString,Array<T>- Prelude:
Option<T>,Result<T, E>— no null - Structs, enums,
match(exhaustive)
fn unwrap_or(opt: Option<int>, fallback: int) -> int { return match opt { Some(x) => x, None => fallback };}- Capabilities — grant I/O explicitly
- The 5-minute tour — overview (stub)