© Antonello Lobianco 2019Antonello LobiancoJulia Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-5190-4_4
4. Custom Types
Chapter 2, “Data Types and Structures,” discussed built-in types, including containers. In this chapter, we move to study how to create user-defined types.
Type versus Structure
Let’s clarify these two terms in the Julia language context.
A type of an object, in plain English, refers to the set of characteristics that describe the object. For example, an object of type sheet can be described with its dimensions, its weight, its size, or its colour.
All values in Julia are true objects ...