Value parameters that are modified should automatically be copied once upon entry to the function. This may interact w/ the copier, but custom copiers are not yet allowed.
sample(vec Vec3) {
vec.x = 10
vec.mutate()
}
Possibility: Allow immutable types to be declared:
Vec3 < immutable Value {
x Float
y Float
z Float
}
Value parameters that are modified should automatically be copied once upon entry to the function. This may interact w/ the copier, but custom copiers are not yet allowed.
Possibility: Allow immutable types to be declared: