Julia type system

Overview

Teaching: 60 min
Exercises: 0 min
Questions
  • What is the use of types?

  • How are types organized in julia?

Objectives
  • Understand the structure of the type tree.

  • Know how to traverse the type tree.

  • Know how to build abstract, mutable and immutable types.

  • Know how to use type parameters.

Key Points

  • Types enable the compiler to optimize code.

  • In julia types have only one direct supertype.

  • Types increase security, Type annotations are mainly used for dispatch.

  • Parametric types are useful for flexible yet performant code.