O'Reilly logo

haXe 2 by Benjamin Dasnois

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required