Home Segments Index Top Previous Next

114: Mainline

When you move computational detail into a function, you are said to be doing procedure abstraction, and you are said to be hiding the details of how a computation is done behind a procedure-abstraction barrier.

The key virtue of procedure abstraction is that you make it easy to reuse your programs. Instead of trying to copy particular lines of program, you—or another programmer—arrange to call a previously defined function.