Every programming language needs to understand the kind of data it is being supplied with. Types, often referred to as data types, are simply a classification of data that lets the computer know the differences between the kinds of input being provided by the user. Julia also uses a type system that uniquely identifies integers, strings, floats, Booleans, and other data types.
In this chapter, we will closely walk you through the extensive type system of Julia, and how just supplying the data type greatly enhances the overall speed of execution. Here is the list of topics that we will be covering in this chapter:
- Julia's type system
- Type annotations
- More on types
- Subtypes and supertypes
- User-defined and composite data types
- Inner constructors
- Modules and interfaces
- Module file paths
- Multiple dispatch explained
After going through this chapter, you will be able to:
- Understand the various types in Julia and be able to supply them
- Create new data types using the...