Multiple dispatch is one of the most unique features in the Julia programming language. They are used extensively in the Julia Base library, stdlib, as well as many open source packages. In this section, we will explore how multiple dispatch work and how one can utilize them effectively.
Understanding Multiple Dispatch
What is a dispatch?
A dispatch is the process by which a function is selected for execution. You may wonder why there is any controversy in selecting which function to execute. When we develop a function, we give it a name, some arguments, and a block of code that it should execute. If we come up with unique names for all functions in a system, then there will be no ambiguity. However, there are often times...