My Question is; When writing a compiler, is it valid in all cases, to desuger unary minus, to the binary minus, with first operand = 0, that is can I change;
-x
to:
0-x
or will desugering alike this yield issues down the line?
My Question is; When writing a compiler, is it valid in all cases, to desuger unary minus, to the binary minus, with first operand = 0, that is can I change;
-x
to:
0-x
or will desugering alike this yield issues down the line?