Principles
Overview of Haxe principles snippets and tutorials.
Apr 05, 2016 Principles / Everything is an expression
Many programming languages split code into two kinds of elements: statements and expressions. Statements perform some action (e.g. if/else) and expressions return values (e.g. a + b).
Mar 22, 2016 Principles / Inheritance
Classes inherit from other classes using the extends keyword:
Mar 23, 2016 Principles / Null safety
NOTE: Since Haxe 4.0, the compiler provides a more natural compile-time checking for nullable values that is aware of the control flow. See official documentation for more details. We're leaving this example for the curious as it illustrates how abstract types can be used for such thing.