[External] : Re: Updated State of Valhalla documents

John Rose john.r.rose at oracle.com
Thu Dec 23 19:43:22 UTC 2021


On 23 Dec 2021, at 11:26, forax at univ-mlv.fr wrote:

> For "value", we know that we want value class and value record, so 
> it's more like a modifier.
> For primitive, do we want a primitive record ? The VM supports it, but 
> do we want to offer that possibility in Java ?
> My gut feeling is that the answer is "No" because of what Kevin said 
> earlier, we should drive users to use value classes instead of 
> primitives.

Good points, though not sure if they carry the decision completely the 
other way.  The VM sees primitive as a classfile modifier.  (The 
`ACC_PRIMITIVE` modifier flag!)  You are raising the question of whether 
this is smart for the language as well.  For further discussion and 
perhaps experimentation.


More information about the valhalla-spec-observers mailing list