About

Roy is an experimental programming language that targets JavaScript. It tries to meld JavaScript semantics with some features common in static functional languages:

Try the current version below. The code is on GitHub. Follow @roylangjs for news on development.

Try

Roy input

Custom Hello world Types Functions Greatest common divisor Tagged unions Structural Module Tracing monad Ajax monad Deferred monad

JavaScript

Output

Resources