然而,那篇文章没有解决在聚集中支持分组操作符的问题。
However, it specifically did not address the issue of supporting grouping operators for the aggregates.
我记得在采访Gosling时曾问过他为何放弃操作符重载(我想该问题和答案还尚未公开过)。
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).
在Scala中定义这种一元“操作符”需要一点技巧,但这只是语法上的问题而已。
Defining this unary "operator" in Scala is slightly tricky, but it's purely a syntactic nit.
应用推荐