solilang 0.21.1

A statically-typed, class-based OOP language with pipeline operators
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Minimal test
let counter = 0;

fn handler(req: Any) -> Any {
    counter = counter + 1;
    return {
        "status": 200,
        "headers": {"Content-Type": "text/plain"},
        "body": "OK " + str(counter)
    };
}

print("Starting server on port 4000...");
http_server_listen(4000);