Low-level compiled programming language
designed to be expressive, versatile, and easy to use.
// Simple Calculator in Zura
fn math(op: char, a: i8, b: i32) -> int {
switch(op) {
'+' => ret a + b;
'-' => ret a - b;
'*' => ret a * b;
'/' => ret a / b;
_ => ret 0;
}
}
fn main() -> !void {
auto x := (math('+', 10, 5) == 0) ? "Operation not found"
: math('+', 10, 5);
info "%a\n", .{x};
ret 0;
}