Command-Query Separation
Get Babylon's Translation Software!
Free Download Now!
Babylon 8 - Your all-in-one solution
Award winning translation software trusted by millions. Translate from any language to any language.
View Demo
Translation
Dictionary
Tools
Wikipedia English The Free Encyclopedia
Download this dictionary
Command-query separation
Command-query separation (CQS) 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 every
method
should either be a command that performs an action, or a query that returns data to the caller, but not both. More formally, methods should return a value only if they are
referentially transparent
and hence possess no
side effect
s.
See more at Wikipedia.org...
This article uses material from
Wikipedia
®
and is licensed under the
GNU Free Documentation License
Define Command-Query Separation
Translate Command-Query Separation