Julia 1.0 Programming Complete Reference Guide
上QQ阅读APP看书,第一时间看更新

Control Flow

Julia offers many control statements that are familiar to the other languages, while also simplifying the syntax for many of them. However, tasks are probably new; they are based on the coroutine concept to make computations more flexible.

We will cover the following topics in this chapter:

  • Conditional evaluation
  • Repeated evaluation
  • Exception handling
  • Scope revisited
  • Tasks