JEP 193: Enhanced Volatiles
jeroen at sumatra.nl
Tue Mar 4 07:41:08 UTC 2014
Brian Goetz wrote:
> Embedded in this proposal is the desire to not provide a full-blown
> "lvalue" form for variables; supporting any form of pass-by-reference at
> the language level is a super-non-goal here.
Why is this? It solves these problems in an extremely clean way and also provides lots of other value (for example, for JEP 191: Foreign Function Interface).
I understand pass-by-reference is an expensive feature, but IMNSHO poluting Java with this proposal will prove to be more expensive in the long run. It's like erased generics all over again.
More information about the core-libs-dev