2.5.2 Class Notation for Structure Types

When defining a structure type, Haxe allows using the same syntax as described in Class Fields. The following typedef declares a Point type with variable fields x and y of type Int:

typedef Point = {
    var x : Int;
    var y : Int;

Take the Haxe Survey!