Branching
“Branching” is a fancy name for the infamous GOTO statement. To be fair, it became infamous only after Edsger Dijkstra, one of the founding fathers of modern computer science, published his open letter “Go To Statement Considered Harmful” [Dij68] in 1968. Before that, GOTO had been considered a preferred way to control program execution flow. One can prove that GOTO suffices for implementing conditional statements, loops, and choices. A powerful tool it is, so don’t blame APL for depending on branching.
You can use the branch arrow →L only in a function definition, not in the interaction mode. The function depends on line numbers and labels (neither available in the interaction mode). So, first, a word about labels.
An APL label ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access