Julia's type system is organized into a clean hierarchy of data types. Some of the data types sit above other data types, and vice versa. This, however, should not be confused with the precedence of types, as we are not talking about that here. Rather, our focus is mainly to understand how Julia's type system organized itself into a tree structure.
To start with, the starting point of all data types in Julia is the Any
datatype. The Any
type is like the parent node of the tree, and all the other possible data types are directly or indirectly its child nodes.
Following is Julia's type hierarchy (sample):
Any | --------------------------------------------- Number AbstractString | | -------------------------------- | Complex ...