On 18 October 2012 21:30, Tom Szczesny <[email protected]> wrote: > ................ > 1) Amend > 2) Conditional > 3) Monadic case (with each) > 4) Resume > 5) Return > So, in K, the control structure is implemented as a special case of a verb.
Actually, none of the above is anything like a verb. Specifically, the one under discussion, 'return', is described in the 'Controls' chapter. So K's return is a control, just as it is in J. > ... probably even better described as exception handling Hardly so. First, raising an exception does not return control to a caller; rather, it seeks for a handler (catcher). Second, in doing so, as many functions as necessary can be exited at once. For raising exceptions, similar to other languages, J has the 'throw.' control. The closest to J's (or K's) return from other languages is ... return. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
