What happened to the "mutable struct" debate?

Rezaei, Mohammad A. Mohammad.Rezaei at gs.com
Fri Jan 23 15:54:09 UTC 2015


>Very much so.  This is indeed Big Strike #1 against them; this is a new
>big complexity that Java (platform and developers) have not had to deal
>with.
>

I don't really see why mutable structs would necessitate pass by reference. Java developers are used to pass by value semantics and there is a well-known, but admittedly ugly pattern for pass by reference (use an array or mutable wrapper).

The reference question comes up even in all-final value types. But I'll pose that question in a separate thread.

Thanks
Moh


More information about the valhalla-dev mailing list