Introduction
Welcome to Zap
Section titled “Welcome to Zap”Zap is a modern, statically-typed programming language designed for clarity, speed, and developer joy. It draws inspiration from the best ideas in languages like Rust, Go, and Python — while keeping the learning curve gentle.
Design Goals
Section titled “Design Goals”| Goal | Description |
|---|---|
| Readable | Code should read like prose. No sigil soup, no implicit magic. |
| Fast | Compiles to native code. Zero-cost abstractions where it matters. |
| Safe | Strong type system catches bugs at compile time, not at 3 AM in production. |
| Batteries | A rich standard library ships with every installation. |
| Extensible | Module system makes it easy to share and reuse code. |
What You’ll Find Here
Section titled “What You’ll Find Here”These docs are organised into sections you can explore in any order:
InstallationGet Zap on your machine.
Hello WorldWrite and run your first program.
Language ReferenceDeep dive into syntax, types, and semantics.
Standard LibraryBrowse built-in modules.
A Quick Taste
Section titled “A Quick Taste”// hello.zap — your first Zap programfn main() { let greeting = "Hello, World!" print(greeting)}Run it with:
zap run hello.zapReady? Head to Installation to get started.