Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Haxe

< >

Haxe is an open source programming language created in 2005 by Nicolas Cannasse.

#59on PLDB 19Years Old 17kRepos
Download source code:
git clone https://github.com/HaxeFoundation/haxe
Homepage · REPL · Try It Online · Source Code · Blog · Wikipedia · Twitter · Docs

Haxe is computer software, a high-level, cross-platform, multi-paradigm programming language and compiler that can produce applications and source code, for many different computing platforms, from one code-base. It is free and open-source software, distributed under the GNU General Public License (GPL) 2.0, and the standard library under an MIT License. Haxe includes a set of common functions that are supported across all platforms, such as numeric data types, text, arrays, binary and some common file formats. Read more on Wikipedia...


Example from Riju:
class Main { static public function main() { trace("Hello, world!"); } }
Example from hello-world:
class HelloWorld { static function main() { trace("Hello World"); } }
// Hello world in Haxe class Hello { static public function main() { trace("Hello world!"); } }
Example from Wikipedia:
class FooBar { public var foo:Int; public var bar:String; public function new(){ foo=1; bar="2";} function anyFooBar(v:{foo:Int,bar:String}) trace(v.foo); static function test(){ var fb = new FooBar(); fb.anyFooBar(fb); fb.anyFooBar({foo:123,bar:"456"}); } }

Language features

Feature Supported Example Token
Strings "Hello world" "
MultiLine Comments /* A comment */ /* */
Line Comments // A comment //
Type Inference
Static Typing
Comments
Semantic Indentation X
- Build the next great programming language · Add · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements · Part of the World Wide Scroll