The Rush Programming Language

The Rush Programming Language website

View the Project on GitHub rush-lang/site

Rush is a General Purpose Programming Lanuage that builds on top of today’s most widely used and popular languages.


import std.math

struct point:
    x: floating get set;
    y: floating get set;

    this(x, y: floating):
        this.x = x;
        this.y = y;

tostr({x, y}: @point) => $"({x}, {y})";

main(args: string[]):
    let step = pi / 5;

    let xs = map(1...10, x => cos(x * step));
    let ys = map(1...10, y => sin(y * step));

    let pts = zip(xs, ys).map({x, y} => new point(x, y));

    each(pts, writeln);