Wiki

Changes between Version 2 and Version 3 of Contracts

Show
Ignore:
Timestamp:
08/23/10 16:13:43 (14 years ago)
Author:
nevdelap
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Contracts

    v2 v3  
    1616 
    1717== Boolean Expressions == 
    18 Be aware that Cobra gives '''and''', '''or''', and '''implies''' equal precedence which is different from the conventions of boolean logic. Since boolean expressions are the basis of contracts you should be aware of the implications to your expressions when writing your preconditions, postconditions and invariants, specifically that additional parentheses will be required where you might not expect to need them. 
     18Be aware that Cobra gives '''and''', '''or''', and '''implies''' equal precedence which is different from the conventions of boolean logic and most other languages including C# and Python. Since boolean expressions are the basis of contracts you should be aware of the implications to your expressions when writing your preconditions, postconditions and invariants, specifically that additional parentheses will be required where you might not expect to need them. 
    1919 
    2020== Keywords ==