Is there any Scala like alternative to JavaScript? I'm looking for language with:
- Embeded XML
- Better standard library than classic JavaScript
- Implicit Conversion
Is there any Scala like alternative to JavaScript? I'm looking for language with:
There is a project "Scala+GWT" that compiles Scala -> a GWT intermediate target. GWT then presumably compiles it to JavaScript. http://scalagwt.github.com/
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!)
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.
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/