the reason i say that is, by having operator overloading i can use 1 generic interface to all of the objects that i want to use.
他在大多数情况下都是对的,我要这么说的原因是,通过运算符重载我可以,用一个通用的借口对。
operator overloading is another feature i could have used but didn「t.
操作符的重载是另一个我使用过但是没有包括在例子中的特性。
operator overloading allows new data types to be created that seamlessly integrate into the language.
运算符重载允许创建与语言无缝集成的新数据类型。
as you」ve seen, operator ad hoc polymorphism, or operator overloading to the rest of us, can be quite powerful if carefully employed and documented.
可以看到,操作符的即时多态,或操作符重载,对于我们来说,如果小心使用和记录,会非常强大。
it is much more powerful than operator overloading in languages like c++.
这些操作符号比 c++ 这类语言中的重载操作符具有更强大的功能。
operator overloading that works well with generics and built-in primitive types.
运算子多载,适用于泛型及内建基本型别。
groovy supports operator overloading and the list class uses the left shift operator ("to append new objects to the list.
groovy支持操作符重载,以及list类使用左移操作符(“给list添加新对象。
more consistent, symmetric operator overloading
更一致的、对称的操作符重载
for example, he acknowledges that operator overloading is difficult to use in c++
他提到c++中的操作符重载很难用
we「ll learn more about operator overloading in the next chapter, but in this chapter we cover the assignment operator .
在下一章我们将进一步学习操作符重载,本章中我们先介绍赋值操作符。
i」m not sure where you got the impression that the choice of leaving out operator overloading was because someone didn「t do their homework.
我不知道你是怎么得到下面这个结论的:放弃操作符重载仅仅是因为它太复杂了。
i remember asking this gosling in one of my interviews of him why he left out operator overloading (i don」t think that question and answer ended up getting published).
我记得在采访gosling时曾问过他为何放弃操作符重载(我想该问题和答案还尚未公开过)。
this function must use operator overloading of the / (division) operator.