WebGlossary.info
Command-Query Separation
- A principle of imperative computer programming. CQS was devised by Bertrand Meyer as part of his pioneering work on the Eiffel programming language. The principle states that every method should either be a command that performs an action, or a query that returns data to the caller, but not both. In other words, “Asking a question should not change the answer.” More formally, methods should return a value only if they are referentially transparent and hence possess no side effects. ← Wikipedia
- Previous term: Command-Query Responsibility Segregation
- Next term: Comment
- Random term: Repeated-measures design