Book Image

haXe 2 Beginner's Guide

5 (1)
Book Image

haXe 2 Beginner's Guide

5 (1)

Overview of this book

Table of Contents (21 chapters)
haxe 2
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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