Hacker News new | ask | show | jobs
by gf000 190 days 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.

1 comments

> instead of breaking a convention and hacking something and hoping

It's not a convention in Go, so it's not breaking any expectations