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
// Test: Mutability errors
// Expected: Should show "Cannot assign to immutable variable"

fn main() {
    // Test 1: Assign to immutable variable
    let mut x = 10
    x = 20  // Error: cannot assign twice to immutable variable
    
    // Test 2: Mutate immutable reference
    let mut y = vec![1, 2, 3]
    y.push(4)  // Error: cannot borrow as mutable
    
    println!("{} {:?}", x, y)
}