Closed armfazh closed 3 years ago
I'm curious: what is your reasoning for removing Set
? For me both ways are fine.
I'm curious: what is your reasoning for removing
Set
? For me both ways are fine.
calling functions as simple as func (z *Type) f(x*Type) { *z =*x }
has a cost=5 for the inliner. This code has lots of nested expressions like this; which makes the cost increments for a simple operation such as assigning.
using native copy functions rather than using a setter function.