top | item 11257170

Urlang: JavaScript with Racket-like syntax

30 points| merrier | 10 years ago |github.com | reply

8 comments

order
[+] eggy|10 years ago|reply
The number one reason listed is to write a Racket runtime in JavaScript. Does this man like the Ur functional language, Racket can then be used on the server, the client and make SQL calls eventually?
[+] soegaard|10 years ago|reply
Here Ur just means something simple.

Also urlang is a bad pun. It sounds like Erlang (whom the programming language Erlang is named after), who grew up near where I live.

[+] terminalcommand|10 years ago|reply
There is also lispyscript for people interested in writing js in a lispy syntax.
[+] andrewfromx|10 years ago|reply
my first reaction, WTF that's like lisp or erlang right? So, maybe that's the point. JS is a functional language like lisp or erlang???
[+] soegaard|10 years ago|reply
Actually Urlang is like JavaScript. The syntax is different, the semantics are the same. Except that I signal error for unbound identifiers (and DrRacket will show where in the source code). Also I allow names with dashes in them.

As an addition (which doesn't change the semantics) I allow the user to add their own favorite programming constructs - i.e. there are macros. And the macros are written using standard Racket macro tools.