Introduction
Overview
A modern, beginner-friendly language that combines power, performance, and simplicity.
Features
- 🛡️ statically typed
- 🔢 low level language
- 🚀 targeted for high performance applications
- 🤝 open source
Syntax
Functions
fn main(argc: type, argv: type): i32 {
...
}
Variables
(var | const) <ident> [: <type>] = <expr>;
var a = 2323232323; // type deduction
const b = "232322211jfj"; // same
var c: i64 = 2323232121432323; // explicit
Conditionals
if <expr> {
...
} else { ... }
Loops
while <expr> {
...
}
Import
import "dir/file.sw"; // local file
import package::module::symbol; // global package