Unary Minus vs Binop Minus

111 views Asked by At

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?

0

There are 0 answers