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
// TDD: Generic struct and impl type parameter propagation
// Tests: pub struct Container<T> { value: T }
//       impl<T> Container<T> { ... }

pub struct Container<T> {
    value: T,
}

impl<T> Container<T> {
    pub fn new(value: T) -> Container<T> {
        Container { value }
    }

    pub fn get(self) -> T {
        self.value
    }
}