Summary

In this chapter, we explored the different control constructs such as if and while. We also saw how to catch exceptions with try/catch, and how to throw our own exceptions. Some subtleties of scope were discussed, and finally we got an overview of how to use coroutines in Julia with tasks. Now, we are well equipped to explore more complex types that consist of many elements. This is the topic of the next chapter, Collection types.

Get Getting Started with Julia 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.