Option–operand separation
From HandWiki
Revision as of 19:26, 4 August 2021 by imported>PolicyEnforcerIA (attribution)
Option-operand separation is a principle of imperative computer programming. It was devised by Bertrand Meyer as part of his pioneering work on the 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.
This article does not cite any external source. HandWiki requires at least one external source. See citing external sources. (2021) (Learn how and when to remove this template message) |
![]() | Original source: https://en.wikipedia.org/wiki/Option–operand separation.
Read more |