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

Summary

In this chapter, we have learned what the typing system is, how to type variables, how to use type parameters, and how you can put constraints on them. We used different ways to type variable, and learned/showed that using type parameters is up to your preference and your imagination.

Specifically, we covered static typing, inheritance, and type inference. We have also covered function's type and what type parameters are and how to use them to create parameterized classes.

We have covered a great part of the haXe typing system and in the next chapter, we will learn about the Dynamic type, which is one of the most interesting things in haXe!

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