Any higher level language that writes javascript?

I am looking for a higher level language that javascript writes out. in other words, the relation of this language to javascript is similar to the relation of C ++ having assembly code.

The requirements of this higher level language are a safe type, simple refactoring, capable of having classes, inheritance, etc. (abit like java / C # / vb.net).

The advantage is that I can code in a higher level language without relying on “hacks” to inherit javascript. Also, I don’t need to do any runtime / duck checks, since a higher level language will impose a type safety constraint, and the generated javascript will just “complete the job”.

Additional benefits can be any advantages that we could have when we code in C ++ compared to coding in the assembly.

I am going to write this higher level language first, but it works too much, and I was wondering if anyone had really done something like that already.

+3
source share
4 answers

CoffeeScript .

The goal of CoffeeScripts is not to compile an existing high-level language using JavaScript, but to create a new language as "better JavaScript than JavaScript."

This is similar to using C ++ as "better than C".

, JavaScript, JavaScript. CoffeeScript (JavaScript).

+4

Script #, # JavaScript. - . jsc, .NET JavaScript .

, , ECMAScript 5th edition.

+3

Google Web Toolkit (GWT) Java- JavaScript . :

GWT SDK Java API . AJAX Java JavaScript, , Android iPhone.

, , JavaScript JavaScript Google Closure Compiler.

Script #

, @Andy E, ECMAScript5

+2

LLVM emscripten. ( C ++) - LLVM, JavaScript. :

Emscripten Lode LLVM JavaScript, C ++ JavaScript ( - LLVM Clang), . Emscripten C ++, , Python ( CPython), Bullet eSpeak, .

, , box2d.js, box2d .

+1

All Articles