Summary
In this chapter, we looked at how the Julia type system defines common numeric and string types and the role that multiple dispatch plays in creating an efficient mechanism for calling functions.
We developed a set of types for a class of vehicle types and then added data to create and manipulate some specific instances.
Finally, we discussed the topic of parametric types and developed a numeric example of an ordered pair as an alternate formulation of complex numbers.
In the next chapter, we will complete our survey of coding in Julia, looking at how it encompasses interoperability with other programming languages and how it is simple to utilize functions and methods in these languages, such as C, Python, and R, from Julia.
We will also introduce ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access