Instead, haXe uses C++ - style templates and type inference, so that you can
benefit from the flexibility of dynamic types.
Another benefit of haXe is that it supports both functional programming and object - oriented
programming principles, while still maintaining solid best programming practices. On the functional
programming side, haXe supports type inference as already mentioned, as well as nested functions
and recursion. The object - oriented capabilities of haXe, however, allow for classes, interfaces,
enumerators, and getters and setters.
Throughout the course of this book, the main focus will be that of object - oriented programming
techniques in haXe, though the functional programming features will be outlined for reference.
Part I: The Core Language
8
The haXe Libraries
The haXe language comes complete with various libraries that one would expect from any mature
language. As standard, haXe provides support for XML, regular expressions, sockets support, and
database connectivity. Unlike many languages, the haXe core library also provides a template system, a
persistent database objects framework, and a remoting framework that allows for scripted
communication between Flash, JavaScript, and Neko.
Pages:
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51