On Thu, Jan 7, 2021 at 2:30 AM Jonathan Goble wrote:
What would you change in the matrix according to your favorite coding style?
I would also use parentheses like so: "(not test1) or test2"
I agree that "(not x) or y" would look nicer with parentheses.
It seems the "unary" type should behave differently for its two subsets: (#) and (- ~ not)
1st \ 2nd | or and == | ~ & << .. + * unary ^
-------------+-----------------------------------------------------------
or | --- ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )
and | --- --- ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )
== | --- --- YES ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )
| | --- --- --- --- ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )
~ | --- --- --- YES --- ( ) ( ) ( ) ( ) ( ) ( ) ( )
& | --- --- --- --- --- --- ( ) ( ) ( ) ( ) ( ) ( )
<< | --- --- --- --- --- --- YES ( ) ( ) ( ) ( ) ( )
.. | --- --- --- YES YES YES YES --- ( ) ( ) ( ) ( )
+ | --- --- --- YES YES YES YES YES --- ( ) ( ) ( )
* | --- --- --- YES YES YES YES YES --- --- ( ) ( )
unary - ~ not| YES YES YES YES YES YES YES YES YES YES YES ( )
unary # | --- --- --- --- --- --- --- --- --- --- --- ( )
^ | --- --- --- YES YES YES YES YES --- --- --- YES