Control Flow

Sandeep Nagar · Apress eBooks · 2017

When you evaluate Julia code line-by-line for execution, you sometimes need to shift the flow of execution out of this line-by-line manner to a different point of the code. In other words, the flow of the program needs to be altered. There are many reasons why you would need to make this shift. For example, a condition needs to be checked and then the flow can be directed to one of many directions, some parts of the calculation are repetitive so the program needs to be altered before returning back, or an error might happen and the flow needs to redirected. Julia provides powerful constructs for these situations, which will be described in this chapter. These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Read the paper · More papers on PaperTik