PRE-PROPOSAL: Simple operator overloading.
Joseph D. Darcy
Joe.Darcy at Sun.COM
Thu May 14 22:40:30 PDT 2009
rssh at gradsoft.com.ua wrote:
> Permanent URL: http://docs.google.com/Doc?id=dhhvggr8_18djp85shk
>
> 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.
>
>
> OVERVIEW:
> FEATURE SUMMARY:
>
> 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.
-Joe
More information about the coin-dev
mailing list