2 ms·
I'm in the process of learning Haxe. I hope it becomes more popular since you can have macros, static type-checking and a shared code-base with one language.
by explorigin 12y ago
I'm in the process of learning Haxe. I hope it becomes more popular since you can have macros, static type-checking and a shared code-base with one language. You can have all these things with Javascript but not at the same time (that I know of).
Here's a port of the jQuery TodoMVC for anyone wanting a quick example of what a web-target would look like.
https://github.com/explorigin/todomvc-haxe https://github.com/explorigin/todomvc-haxe
- ousado 12y agoWhen you write Javascript, do you mean TypeScript, AtScript, something else? There's no type checking in JS, and there is no metaprogramming support in JS, let alone of the quality it can be found in Haxe. Besides that, the type system of Haxe is far more expressive than those of most languages that also compile to JS. Ocaml, Scala and Haskell are the better known languages that are actual competitors in that regard.
- explorigin 12y agoYes. "With Javascript" I mean via Typescript or Flow, you can have some static type-checking. You can use Sweet.js for macros with Javascript, but you can't use both of these tools together. I'm unfamiliar with Ocaml, Scala and Haskell but OK.