I was playing around with the new Scala IDE (Eclipse 3.6.2 + Scala IDE 2.0.0 [Scala 2.9.0]) and I tried to do something simple like this:
(1 to 10).sum
That works fine, but I've been doing a lot of Groovy also recently and I automatically wrote:
(1 to 10).sum()
This second version gives me a compiler error in the IDE with the following message:
not enough arguments for method sum: (implicit num: Numeric[B])B. Unspecified value parameter num.
I see on the Scala API that there are two versions of sum, one that takes no parameters and one that takes the implicit above. Do I have to call zero-argument methods without parentheses?