1.

What Is The Advantage Of Defining The Sum Procedure, And Defining The Three Procedures As Concrete Applications Of Sum?

Answer»
  1. FIRST, the sum procedure prevents DUPLICATIONS of the computation pattern of SUMMING a sequence elements between given boundaries. Duplication in software is bad for many reasons, that can be SUMMARIZED by management difficulties, and lack of abstraction – which leads to the second point.
  2. Second, and more important, the sum procedure expresses the mathematical notion of sequence summation. Having this notion, further abstractions can be formulated, on top of it. This is SIMILAR to the role of interface in object-oriented languages.



Discussion

No Comment Found