PRE-PROPOSAL: Simple operator overloading.

Joseph D. Darcy Joe.Darcy at Sun.COM
Thu May 14 22:40:30 PDT 2009

rssh at wrote:
> Permanent URL:
> Probably too big, but anyway.
> As I remember, alternative proposal (made [] and []= syntax sugar on
> well-known interfaces, as with for-each loop) still not submitted. If
> anybody want submit such proposal, then it is possible to reuse
> JLS-changed for 15.26.1 from there.
>    Add possibility to overloaded common subset of java operators for own
> classes.

Catching up on responses, while adding operators for numerical types 
would certainly improve the readability of numerical code using 
non-primitive types, for Project Coin and JDK 7, I think efforts in this 
area should focus on getting [] and []= for collection-like types since 
they are much more often used than numerical types in Java programming.


More information about the coin-dev mailing list