© Antonello Lobianco 2019
A. LobiancoJulia Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-5190-4_4

4. Custom Types

Antonello Lobianco1 
(1)
Nancy, France
 

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.

../images/477168_1_En_4_Chapter/477168_1_En_4_Figa_HTML.gif 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 belonging ...

Get Julia Quick Syntax Reference: A Pocket Guide for Data Science Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.