Hi! :-)
I'm still a newbie. I've got a factory function for objects, and the newly
created object is given out by a return statement.
But it seems the original object gets copied (no "move semantics") and gets
garbage collected. Anyway, in my program, my custom finalizer (set with
runtime.Set
Hi! :-)
I'd like to understand the reasoning in Go better.
This code is allowed:
newlocalvar, _ := strconv.Atoi(somestring)
And this code is forbidden:
somestruct.field, _ = strconv.Atoi(somestring)
At least it does not compile, and so far I have learned that the reason is
you should not ignor