status: alpha
Goals
- Speed
- Security
- Comfort
Example
fn calc(value){
if value == 5 {
return 0
}
value.mut_sum(1)
println(format("Value is {}", value))
return calc(value)
}
let _ = calc(0)
There are more examples in /examples.
About
ham is a general purpose language. It is heavily inspired by Rust and TypeScript.
Usage
Built-in repl:
ham repl
Run files:
ham run examples/demo.ham
Building
Compile:
cargo build
Running directly:
cargo run -- run examples/demo.ham
Made by Marc Espín Sanz
MIT License