sometimes I write a proc like this:
proc set(v, v2: Vector2): Vector2 =
v.x = v2.x
v.y = v2.y
result = v
This is nice when you want to chain things:
let v = vec2(5.0, 5.0)
let v2 =vec2(10.0, 10.0)
let v3 = v.set(vec2) + vec2(1.0, 1.0)
My question is, does the set proc i wrote above needlessly initialize a Vector2 for the result? should I look at using something like a {.noInit.} pragma?