Mateusz
Mateusz

Reputation: 498

Scala like alternative to JavaScript

Is there any Scala like alternative to JavaScript? I'm looking for language with:

Upvotes: 3

Views: 742

Answers (5)

Răzvan Flavius Panda
Răzvan Flavius Panda

Reputation: 22106

Scala.js might be what you are looking for:

"Scala.js compiles Scala code to JavaScript, allowing you to write your Web application entirely in Scala!"

Site: http://www.scala-js.org/

Github: https://github.com/scala-js/scala-js

Upvotes: 1

Nikita Volkov
Nikita Volkov

Reputation: 43310

There's also a Fantom language. On the main page of its site which it says: Write code portable to the Java VM, .NET CLR, and JavaScript in the browser.

Upvotes: 1

Det
Det

Reputation: 36

Not truly matching your requirements, but answering your initial question "Is there any Scala like alternative to JavaScript? ":

If you do not like Ruby/Python/Coffescript, you should perhaps have a look at the technology preview of google's new language Dart: http://www.dartlang.org/

Looks very java-ish on a first glance, but has many niceties that make it feel scalastic too. (But do not make the mistake to approach it as another Scala. Only Scala is Scala!)

Upvotes: 2

gkuan
gkuan

Reputation: 921

There is a project "Scala+GWT" that compiles Scala -> a GWT intermediate target. GWT then presumably compiles it to JavaScript. http://scalagwt.github.com/

Upvotes: 4

Adrian J. Moreno
Adrian J. Moreno

Reputation: 14859

I think the best you're going to get is something like CoffeeScript, which ultimately compiles to JavaScript. AFAIK, browsers don't have any other cross-browser client-side language with DOM support.

Upvotes: 2

Related Questions