Value Types Proposal for Java

In C++ (and C#, I believe) a struct is only superficially/syntactically different from a class; so constructors and initializer lists work.

A recent comment by John Rose on the dev-list makes it look like the “plan” is for multiple solutions…specifically that “Arrays 2.0” and “Value Types” are both being worked on.

http://openjdk.5641.n7.nabble.com/Unsafe-for-array-access-td187718.html

Eh, I subscribed to that mailinglist and I read that post yesterday, but my interpretation is that the subject it discusses is not related to array handling. It discusses optimisations to make volatile array access through Unsafe as fast as regular array access, and thereby providing fast volatile I/O on arrays.

Can you elaborate on how this subject overlaps with value-types / structs?

Both from John Rose:

Value types is his baby, but seems to be approving of the Arrays 2.0 proposal at the same time.