Practical Uses
Although COMEFROM is syntactically and semantically valid, and capable of replacing GOTO in some programs, it is considerably more difficult to visualise in program design and actually implement in a programming language. The most well known use of a COMEFROM-like construct is setting a breakpoint during debugging. One implementation of FORTRAN included it, under the name "AT", as a debugging aid, with dire warnings against using it in production code. In addition, many modern CPUs have hardware support for breakpoints.
Some elements of aspect-oriented programming have been compared to the COMEFROM statement.
In some reversible computing assembly languages, the target of a GOTO is always a COMEFROM targeting the GOTO.
Read more about this topic: COMEFROM
Famous quotes containing the word practical:
“War-making is one of the few activities that people are not supposed to view realistically; that is, with an eye to expense and practical outcome. In all-out war, expenditure is all-out, unprudentwar being defined as an emergency in which no sacrifice is excessive.”
—Susan Sontag (b. 1933)
“Philosophy, certainly, is some account of truths the fragments and very insignificant parts of which man will practice in this workshop; truths infinite and in harmony with infinity, in respect to which the very objects and ends of the so-called practical philosopher will be mere propositions, like the rest.”
—Henry David Thoreau (18171862)