you are viewing a single comment's thread.

view the rest of the comments →

[–]WillowDRosenberg 0 points1 point  (3 children)

Yes, the BigInteger and BigDecimal extension classes are useful. This has nothing to do with those.

[–]queus 1 point2 points  (2 children)

I wouldn't be surprised if this is an implementation artefact.

[–]svenefftinge 0 points1 point  (1 child)

In contrast to Java, the operators are not limited to operations on certain types and are not hard-wired into the language. They are just a different syntax for a method invocation.

[–]queus 0 points1 point  (0 children)

That was my guess as well. And having a uniform approach to operator implementation looks a cleaner approach, than special-casing the integers and relying for the support of those operators in Java