Clarification on migration to value types and boxed vs unboxed representations

Simon Ochsenreither simon at ochsenreither.de
Tue Jan 6 02:00:46 UTC 2015


> Mutable structs aren't used all that often in c# but there are times when
> they're very useful.  C# allows passing them by ref, which mitigates this
> problem.  This also allows one to have large structs but avoid the copying
> cost.
>
> What's the plan to avoid such copying costs with proposed value types in
> java?
You could pass them in an array.


More information about the valhalla-dev mailing list