9. Defining this unary "operator" in Scala is slightly tricky, but it's purely a syntactic nit.
在Scala中定义这种一元“操作符”需要一点技巧,但这只是语法上的问题而已。
来自互联网
10. What is the difference between the unary minus operator and the binary subtraction operator?
一元操作符负号和二元操作符减号的区别是什么?
来自互联网
11. For example, the unary increment operator is named as operator + +.
举例来说,单目增量运算符命名为operator + +。
来自互联网
12. In our arithmetic expressions we could have used inheritance to get from a unary to a binary operator node, but that would substantially violate the test.
在我们的四则运算表达式里面我们可以利用继承实行从一元到二元操作符的表示,但它实质上会干扰测试。
来自互联网
13. The result of the unary - operator is the negative of its (promoted) operand. The integer promotions are performed on the operand, and the result has the promoted type.
因此减号操作符的运算结果类型依赖于操作数被提升之后的类型。
来自互联网
14. In Syntax 2, the - operator is used as the unary negation operator to indicate the negative value of an expression.
在语法2中,-运算符用作一元求反运算符,指示表达式的负值。
来自互联网
15. In Syntax 2, the - operator is used as the unary negation operator to indicate the negative value of an expression.