windjammer 0.48.0

A simple language inspired by Go, Ruby, and Elixir that transpiles to Rust - 80% of Rust's power with 20% of the complexity
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// TDD: Bug #6 - Function arguments need auto-deref
// When calling function with borrowed param, should auto-deref

fn add_numbers(a: i32, b: i32) -> i32 {
    return a + b;
}

fn calculate(x: i32, y: i32) -> i32 {
    // Bug #6: x and y are borrowed (&i32), but add_numbers expects i32
    // Should auto-deref: add_numbers(*x, *y)
    // Currently: error[E0308]: expected i32, found &i32
    return add_numbers(x, y);
}

fn main() {
    let result = calculate(10, 20);
    println!("Result: {}", result);
}