|
topics >
computer science >
programming >
| ||||||||
expression evaluation Topic: conditional expression Topic: conditional statement Topic: exception handling by termination Topic: exception handling by unique value Topic: failure returning functions and expressions |
SummaryMost language systems include a boolean data type which can be used as a guard. Some languages have the concept of function failure and success which may be used for control purposes. Failure of a function is often seen as signaling an exception. With most, the control returning is optional, but some systems see all functions as returning control (e.g., SNOBOL); others see all values as applicable for control (usually a null response is false while all others are true). One language, SL/5, sees all functions returning a control value and a result value. Functions may also return control, yet have null values when combined in expressions; or they may return control if false and a value if true. In data flow languages, functions may indicate the presence of data or other logical and comparative operations. Control values in all languages may be arguments to other functions. (cbb 5/80) Subtopic: control expression
|