Flow-control structures: Difference between revisions

Content added Content deleted
mNo edit summary
Line 1,033: Line 1,033:


=={{header|Julia}}==
=={{header|Julia}}==
Julia provides the @goto and @label macros for goto within functions. In addition, the "break" keyword is used for jumping out of a single loop.
Julia provides the @goto and @label macros for goto within functions. In addition, the "break" keyword is used for jumping out of a single loop, throw() of an exception can be used to jump out of a try() statement's code, and the assert() and exit() functions can be used to terminate a program.
<lang julia>
<lang julia>
function example()
function example()