Chapter 4. Understanding Types

Understanding the type system.

In this chapter, you will learn about the typing system. haXe is a strongly typed language but provides quite a lot of features such as type inference and Dynamic objects.

haXe has a typing system, which offers a lot of features. Understanding these features is very important to write and debug your programs. It will also help you make the most out of haXe.

In this chapter, we will:

  • Talk about explicitly typed variables
  • Talk about function's type.
  • Learn what type inference is
  • Learn how to cast variables
  • Learn about type parameters
  • See what type parameters are used for
  • How you can use them with already created types
  • How you can create a type that makes use of them
  • Create an example

All of these points ...

Get haXe 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.