Wu
by Niels
An expression oriented, gradually typed and mission-critical programming language

Details

Wu strives to be a decently useful language with focus on control, readability and scalability. The syntax of Wu is heavily inspired by the strong and safe one of Rust, while keeping the advantages of being high-level and gradually typed. The language is meant and designed to be a solid alternative to Python, Lua and MoonScript, while being superior on control and maintainability.

Movable: trait {
    move: fun(self, dx: float, dy: foat)
}

Vector: struct {
    x: float
    y: float
}

implement Vector: Movable {
    move: fun(self, dx: float, dy: float) {
        self x += dx
        self y += dy   
    }
}

point := new Vector {
    x: 100
    y: 100
}

point move(10, 5)
Information updated 12/21/19
Note: This entry has not yet been moderated.
View Comments