Implicit vs. explicit operators.
Confirm by trying it out in the sandbox.
Currently not supported. Will be added in this issue and linked PR #33
Tasks
Tests
For all of the following operators we need:
- Shim tests
- Exercise tests
The list of operators (and their names) is taken from here: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/operator-overloading#overloadable-operators
Operators to support
Arithmetic
- +x
- -x
- !x
- ~x
- ++
- --
true I cannot find a good way to express this operation in an expression tree.
false I cannot find a good way to express this operation in an expression tree.
- x + y
- x - y
- x / y
- x % y
- x & y
- x | y
- x ^ y
- x << y
- x >> y
x >>> y Expression trees cannot contain this operator. This is a limitation on the part of the compiler.
Equality
Comparison
- x < y
- x > y
- x <= y
- x >= y
Implicit vs. explicit operators.Confirm by trying it out in the sandbox.Currently not supported. Will be added in this issue and linked PR #33
Tasks
Tests
For all of the following operators we need:
The list of operators (and their names) is taken from here: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/operator-overloading#overloadable-operators
Operators to support
Arithmetic
I cannot find a good way to express this operation in an expression tree.trueI cannot find a good way to express this operation in an expression tree.falsex >>> yExpression trees cannot contain this operator. This is a limitation on the part of the compiler.Equality
Comparison