What is cross-platform in the library
The standard library includes a lot of classes and methods, which you will need most of the time in a web application. So, let's have a look at the different features. What we call standard library is simply a set of objects, which is available when you install haXe.
Object storage
The standard library offers several structures in which you can store objects. In haXe, you will see that, compared to many other languages, there are not many structures to store objects. This choice has been made because developers should be able to do what they need to do with their objects instead of dealing with a lot of structures, which they have to cast all the time.
The basic structures are array, list, and hash. All of these have a different utility:
Objects stored in an array can be directly accessed by using their index
Objects in a list are linked together in an ordered way
Objects in an hash are tied to what are called "keys", but instead of being an
Int
, keys are...