RowScript is a robustly-typed functional language that compiles to efficient and reliable JavaScript.
What if you have a language to have all these for a better frontend development experience?
Features | In RowScript |
---|---|
Haskell's typeclass | interface |
Rust's impl |
class |
Go's interface | interface |
And luckily, the overall syntax would be in the style of TypeScript!
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: Phonebook);
}
function dialPerson<P>(person: P) where Phonebook<P> {
person.dial();
}
dialPerson(new Person("John Doe"));
$ npm install -D rowscript
This project is at early stage and under active development, syntax and APIs are expected to change.
We separate our development into following phases:
- Proof-of-concept of research ideas and a most viable compiler
- Get ready for open sourcing, targeting the library writer user group
- Get ready for production, targeting the application writer (end users) user group
MIT