RowScript is a robustly-typed functional language that compiles to efficient and reliable JavaScript. It has a user-friendly syntax like TypeScript, and many advanced features like typeclass, effect system, and static reflection.
A hello-world example:
console.log("Hello, RowScript!");
More complicated example with classes and interfaces:
class Person {
name: string;
dial() {
console.log(this.name)
}
}
interface Phonebook {
dial(a: this);
}
function dialPerson<P>(person: P)
where P instanceof Phonebook
{
person.dial();
}
dialPerson(new Person("John Doe"));
$ pnpm install -D rowscript
Oh, npm
is okay too.
This project is at early stage and under active development, syntax and APIs are expected to change.
We separate our development into following phases:
MIT