Skip to content

Commit

Permalink
Use 'neq' instead of 'df' for Boolean not-equal
Browse files Browse the repository at this point in the history
As noted in #3 bug report,
'df' is a poor choice for Boolean not-equal,
standing for 'different'
and at risk of being confused for 'difference'.
'neq' is a unambiguous choice standing for 'not-equal'
in similar fashion as already present operators: 'eq', 'leq', 'geq'.

Fixes #3.
  • Loading branch information
rakhimov committed Feb 22, 2017
1 parent a3a3970 commit 547193b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mef/schema/boolean_operation.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Boolean-operation =
| element and { expression+ }
| element or { expression+ }
| element eq { expression, expression }
| element df { expression, expression }
| element neq { expression, expression }
| element lt { expression, expression }
| element gt { expression, expression }
| element leq { expression, expression }
Expand Down
2 changes: 1 addition & 1 deletion mef/stochastic_layer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Their XML representation is given in :numref:`schema_boolean_operation`.
+----------+------------+---------------+
| **eq** | 2 | :math:`=` |
+----------+------------+---------------+
| **df** | 2 | :math:`\neq` |
| **neq** | 2 | :math:`\neq` |
+----------+------------+---------------+
| **lt** | 2 | :math:`<` |
+----------+------------+---------------+
Expand Down

0 comments on commit 547193b

Please sign in to comment.