3 ms·
Then just return a value representing what you want, instead of breaking a convention and hacking something and hoping that at use site someone else has read th
by gf000 11mo ago
Then just return a value representing what you want, instead of breaking a convention and hacking something and hoping that at use site someone else has read the comment.
Also, just let the use site pass in (out variable, pointer, mutable object, whatever your language has) something to store partial results.
- Orygin 11mo ago> instead of breaking a convention and hacking something and hoping It's not a convention in Go, so it's not breaking any expectations