Queries regarding value classes

Julian Waters tanksherman27 at gmail.com
Fri Mar 18 01:31:06 UTC 2022


Hi Stig,

Yes, that's what I'm querying about. I initially thought value objects were
mutable in some form since they were described as reference types, but it
appears that assumption was mistaken. Thanks for the link, I'll take a look
at it.

Besides that I was also discussing the possibility of making records value
objects by default and the (potentially not possible) ability to mark an
otherwise typical identity object as a value object when it's being used
(Eg value X x = new X(); where X's class definition is actually that of a
normal object), so one would have better ad-hoc control of object
allocation at the site of their usages, but that's slightly less important
for now.

You're also right, it does look like Amber is a better place for this
discussion, thanks for the tip

best regards,
Julian



More information about the valhalla-dev mailing list