Option–operand Separation
   HOME
*





Option–operand Separation
Option–operand separation is a principle of Imperative programming, imperative computer programming. It was devised by Bertrand Meyer as part of his pioneering work on the Eiffel (programming language), Eiffel programming language. It states that an operation's arguments should contain only ''operands'' — understood as information necessary to its operation — and not ''options'' — understood as auxiliary information. Options are supposed to be set in separate operations. The motivations for this are: # Ease of learning: Beginners do not have to concern themselves with setting options. # Wide spectrum coverage: Experts can still set options using the auxiliary operations. # Evolution. Options are more likely to change than operands, so the parameter list to the operation remains more stable. References

Object-oriented programming {{Plt-stub ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


picture info

Imperative Programming
In computer science, imperative programming is a programming paradigm of software that uses statements that change a program's state. In much the same way that the imperative mood in natural languages expresses commands, an imperative program consists of commands for the computer to perform. Imperative programming focuses on describing ''how'' a program operates step by step, rather than on high-level descriptions of its expected results. The term is often used in contrast to declarative programming, which focuses on ''what'' the program should accomplish without specifying all the details of ''how'' the program should achieve the result. Imperative and procedural programming Procedural programming is a type of imperative programming in which the program is built from one or more procedures (also termed subroutines or functions). The terms are often used as synonyms, but the use of procedures has a dramatic effect on how imperative programs appear and how they are constructed ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  



MORE