What happened to the "mutable struct" debate?

Brian Goetz brian.goetz at oracle.com
Thu Jan 22 22:36:44 UTC 2015


Hi Moh!  Good to have you here.

The sad answer is: we've got a long list of "road not taken" items for 
which we intend to write up our thoughts on why those roads were not 
taken.  As you can imagine, though, such writeups compete for time with 
many other activities, and so they often lag behind...


On 1/22/2015 5:30 PM, Rezaei, Mohammad A. wrote:
> I recently joined the list and I can't find any references to the justification behind restricting value types to final fields (aka immutable).
> As Brian says (http://mail.openjdk.java.net/pipermail/valhalla-dev/2015-January/000734.html), "There are some people who would prefer something more like mutable structs" and yet, the value types proposal (http://cr.openjdk.java.net/~jrose/values/values-0.html) takes immutability as a given.
>
> Is the issue considered settled? Is the justification documented?
>
> Thanks
> Moh
>



More information about the valhalla-dev mailing list