PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Haxe

Haxe

Haxe is a pl created in 2005 by Nicolas Cannasse.

#102on PLDB 17Years Old 8.8kUsers
5Books 0Papers 17kRepos

Try now: Riju · TIO

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"); } }
Example from the Hello World Collection:
// 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
//
Static Typing
Comments
Semantic Indentation ϴ

Books about Haxe on goodreads

title author year reviews ratings rating
Professional haXe and Neko (Programmer to Programmer) L. McColl-Sylvester 2008 0 0 0.0

Books about Haxe from ISBNdb

title authors year publisher
Haxe Game Development Essentials McCurdy, Jeremy 2015 Packt Publishing
Haxe Game Development Essentials Jeremy McCurdy 2015-11-26 Packt Publishing
haXe 2 Beginner's Guide Benjamin Dasnois 2011-07-26 Packt Publishing
haXe 2 Beginner's Guide Benjamin Dasnois 20110726 Packt Publishing
labview.html · haxe.html · wasm.html

View source

PLDB - Build the next great programming language · v2022 · Day 31 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com