A precondition is a condition on the inputs, and on the state, that a caller must ensure before calling a function. A postcondition is a condition relating the result and the final state to the inputs, which the function guarantees when it returns. The pair is the function’s specification: a contract, in which the function owes nothing to a caller who broke the precondition.
Computer Science · शब्दावली
Precondition, postcondition, specification क्या है?
अन्य नाम: precondition · postcondition · specification