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 learned about the Dynamic type and the dynamic keyword.

Specifically, we covered what the Dynamic type is, what the parameterized Dynamic type is, and how you can implement both in your own classes. We also covered how you can use properties.

Dynamics can be useful but remember to avoid overuse them as they can break your code at runtime.

On the same note, remember that properties are a compile-time feature only.

In the next chapter, we are going to learn about other things in the typing system such as Enums and

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